Speed up your Rust container build and reduce CI/CD costs to the minimum by caching as much as possible with this perfect Dockerfile.
For my current backend project, written in Rust with actix-web and SQLx, I was looking for a proper CI/CD template, but couldn't find one. Since Rust builds are heavy and time-consuming, I wanted to cache as much as possible during the container build. Not only to speed up my pipeline, but also to reduce CI/CD costs at my current GitHub project.
I hope you enjoy it as much as I do and it will save you a lot of time in the future. Let me know in the comments if you need help or have an idea on how to cache even more.
You might also like...
How to delete all unused Docker container images
1 min read
5 Reasons Why Your Enterprise Should Use CI/CD for Software Development
3 min read
Automatische s390x Container Image Bereitstellung
4 min read
GitLab Runner: Argument List too long because of Self Signed Certificate