Skip to navigation
How to save the bundler gems to the user app folder in dokcer
05.04.20
1. in you Dockerfile set it like: ENV GEM_HOME="/opt/app/vendor/bundle" ENV PATH $GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH than when your /opt/app/ volume is linked to the host, the gems will stay permanent after a new container creation.
https://bundler.io/guides/bundler_docker_guide.html
Reply
Anonymous
Information Epoch 1758007305
Save trees.
Home
Notebook
Contact us