This is similar to mozilla/fxa-profile-server#330. It builds from a base image that has tools that can build binary node extensions, and secondly, checks the install with npm install --production.
The net gain is 3MB from the production image. (A --squash would recoup about 8MB from that image, but not bothering with --squash in this PR).
This is similar to mozilla/fxa-profile-server#330. It builds from a base image that has tools that can build binary node extensions, and secondly, checks the install with
npm install --production
.The net gain is 3MB from the production image. (A
--squash
would recoup about 8MB from that image, but not bothering with--squash
in this PR).r? - @vladikoff