Open T3sT3ro opened 2 years ago
I managed to make it (kind of?) retain it's gems, by using bundle config --local path vendor
inside a container with mounted volume. This resulted in the addition of BUNDLE_PATH: "vendor"
line inside the vendor/bundle/config
.
Still, I think there should be some easier way to do that, and the image should be updated. My current Gemfile is
When starting a
jekyll/jekyll:4.0
(and4.2.2
) with volume./vendor/bundle:/usr/local/bundle:Z
, installed gems don't cache locally. They install into/usr/gem
, so starting jekyll server without internet access is impossible.I tried attaching to container and doing any combination of
bundle cache
,bundle package
,bundle update
,bundle install
,bundle install --deployment
, but nothing populates thevendor/bundle
...Here is my docker-compose.yml: