Hacker News new | ask | show | jobs
by kentt 3395 days ago
I think the idea here is that the docker level caching isn't well suited for this. Eg for us we install all relevant gems with `bundle install`. If you update one gem, that the whole layer is rebuilt. Since the whole `bundle install` layer is rebuilt, every gem is fetched again from rubygems.

Yarn works the same.

1 comments

Having a separate FROM image doesn't help that situation either, since you have to rebuild it.
Couldn't you FROM and then update? I'm not a ruby expert but I'd hope that it could be incremental.