How to cache bundle install with Docker

Fabiano B.
magnetis backstage
Published in
3 min readJul 30, 2015

--

While dockering a Rails app, the first problem that comes out is the slow bundle install command while building the app’s image.

Let’s say you have this vanilla Dockerfile for a Rails app:

--

--