I want to speed up bundle install time with newsdict.io (rails on docker environment)
--Put the heaviest gem that doesn't change much in the base docker image so that you can use the gem. --Since I was using nokogiri, I use [--use-system-libraries] --Run bundle install in parallel
https://github.com/newsdict/docker_rails/blob/master/Dockerfile#L70
https://hub.docker.com/repository/docker/newsdict/rails
https://github.com/yubele/newsdict.io/blob/9747c9a4d0a69f8f251f1deb9d6b776856281a2b/Dockerfile#L25
https://github.com/yubele/newsdict.io/blob/9747c9a4d0a69f8f251f1deb9d6b776856281a2b/Dockerfile#L24
Q&A
Because the Gemfile may be rewritten frequently
Recommended Posts