Question
App spec does not use Docker container caching
The only thing I changed in my App Spec file is database username. Yet it triggered full rebuild of the Docker, which takes around 10 minutes for 1 service + 10 minutes for a job (both using the same Dockerfile).
There are two issues here:
Issue 1. Docker build cache is not used.
Issue 2. Docker build result is not shared between the job and the service.
This makes me wait for 20 minutes every time I experiment with the App spec, even though there is nothing that would indicate the need to rebuild from scratch:
- no build time args changes
- no Dockerfile changes
Is this expected behavior?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×