4 ms·
This is a good start, but it requires reinstalling all gems every time any one is updated. Here is a clever way to cache your gems in a separate container http
by dankohn1 9y ago
This is a good start, but it requires reinstalling all gems every time any one is updated.
Here is a clever way to cache your gems in a separate container
https://medium.com/@fbzga/how-to-cache-bundle-install-with-docker-7bed453a5800 https://medium.com/@fbzga/how-to-cache-bundle-install-with-d...
I'm working on an example Docker compose setup that makes use of multi-stage builds to copy the gems into the final container, leaving behind all of the build tools.
https://docs.docker.com/engine/userguide/eng-image/multistage-build/#use-multi-stage-builds https://docs.docker.com/engine/userguide/eng-image/multistag...