Hi Tim,

> Despite all this the bundler installs fresh gems every time the
dockerfile builds

Does it download them from rubygems, or does it use local copies from
`vendor/cache`? I assume the latter, but you can confirm it just by looking
at whether there's a download step before the installation.

If it does use gems from `vendor/cache` to install them – then everything's
working well. If you want to cache not just the gems themselves, but also
fully installed bundle environment to avoid bundler installing anything at
all between runs – then you need to store not just `vendor/cache`, but also
your bundle install path, which seems to be `/bundle` in your example (or
actually it's the only thing you need to store – unless you're unhappy with
what comes in `vendor/cache` from your repository for any reason).

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rails-oceania+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rails-oceania/CAC-XhxXu3%2BgYFgjZYLmudyyQ4qvBx31L%2BC7oF8E7aiypD8eLoA%40mail.gmail.com.

Reply via email to