Building the rails container takes a long time, try and use docker build cache
I already tried to fix this problem by pulling the latest image before building, but that doesn't seem to be enough.
Look for other solutions that will speed it up. Perhaps passing the cache-from argument to the build: https://docs.docker.com/engine/reference/commandline/build/#options