envygeeks / jekyll-docker

⛴ Docker images, and CI builders for Jekyll.
ISC License
998 stars 282 forks source link

BUNDLE_HOME volume not being used #306

Open jwarchol opened 3 years ago

jwarchol commented 3 years ago

Thank you so much for creating this project. It's very useful and informative to read. I'm trying to cache bundled gems between jekyll builds using the volume instructions in the README and it does not appear to be working. The gems I've added to the Gemfile are getting installed into /usr/gem/gems. If I set a GEM_HOME environment variable to /usr/local/bundle (and also bind a volume per the README), it does cache them there, though it rebuilds all gems including those already in the image.

Is this bundle volume technique working for you?