mhart / alpine-node

Minimal Node.js Docker Images built on Alpine Linux
MIT License
2.45k stars 303 forks source link

Smaller image size? #133

Closed styfle closed 5 years ago

styfle commented 5 years ago

There's a new project trending today called scratch-node.

When I compared images for version 10.13.0, scratch-node is smaller than alpine-node.

Is there some cruft that alpine-node (base images) could drop?

mhart commented 5 years ago

I don't think so – those images have nothing else AFAICT – so you can't install any alpine packages on them or anything else – without writing your own custom dockerfile. Nice idea! But quite a bit more restrictive than these images

mhart commented 5 years ago

Also, using upx is going to definitely affect the startup time of the binary (although I'd be intrigued to see by how much)