Cache gems after building Rails image
This caches the installed gems from the image and retrieve them before installing them when building the Docker image.
- First run (without cache): https://gitlab.com/gitlab-org/build/CNG/-/jobs/362909159 => 17 minutes.
🐌 - Second run (with cache): https://gitlab.com/gitlab-org/build/CNG/-/jobs/362969430 => 10 minutes!
🚀
Edited by Rémy Coutable