Oh, also you can get more bang for your buck...
if you use
FROM node:8-alpine
or
FROM gcr.io/distroless/nodejs
Becasue... Size matters π, and so does security π
You are right Derek, slimming your images is important, but then i think that is an vast agenda having your multistage bulids, and trimming your code among other things :)
Indeed. But hypothetically if you could only do one thing, utilizing alpine or distroless is a low hanging fruit with a huge ROI.
alpine
distroless
Because, even if you do a multistage build without it you won't trim too much in comparison.
ππ½is a basic Hello World express app
Docker Slim: Hold my beer π
Take a look at docker-slim - dockersl.im/
πΊheld! Very cool
Confirmed! They've successfully implemented the middle-out compression π
middle-out
does it have node-gyp?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Oh, also you can get more bang for your buck...
if you use
or
Becasue... Size matters π, and so does security π
You are right Derek, slimming your images is important, but then i think that is an vast agenda having your multistage bulids, and trimming your code among other things :)
Indeed. But hypothetically if you could only do one thing, utilizing
alpine
ordistroless
is a low hanging fruit with a huge ROI.Because, even if you do a multistage build without it you won't trim too much in comparison.
Docker Slim: Hold my beer π
Take a look at docker-slim - dockersl.im/
πΊheld! Very cool
Confirmed! They've successfully implemented the
middle-out
compression πdoes it have node-gyp?