all DevOps news
[Question] Root on scratch images
Docker: An open source project to pack, ship and run any application as a lightweight container reddit.com
I'm moving our entire structure to docker containers. Right now I'm breaking a monolithic application into containerized smaller ones and is going all right. Right now I'm building a node based container and the end result is a very big image, like 1GB just from the node base container image.
This lead me to think about using scratch images.
- Use the node image as an intermediary build image
- Copy the files and binaries required to the scratch image
- Use the binary directly as entrypoint, like ['/bin/node', 'index.js']
I know the …!-->