DEV Community

Discussion on: Small tip to reduce your Docker images size

Collapse
 
sainig profile image
Gaurav Saini

Hmm, I used to do this too. This is a nice solution for many simpler use cases.

But I personally prefer multi stage builds, makes for much cleaner docker files and more predictable caching.

Collapse
 
a_chris profile image
Christian

Ehi thanks for the suggestion, I'm already using multi stage build for my project github.com/a-chris/faenz to generate the frontend assets but I think it is really hard to use to install gems and move them to the final image, there are so many stuff to move