Azure DevOps the pipeline rebuilds the docker image from scratch every time

Velluva, Anoop 65 Reputation points
2024-01-21T13:38:00.0333333+00:00

My Azure DevOps pipeline is rebuilding the Docker image from scratch each time. I am using a Hosted agent and experimented with a self-hosted agent pool, but encountered an issue due to using MacOS. The build platform is linux/arm64, which is unsupported in Azure Container Instance, and the platform parameter doesn't seem to work for me. I'm seeking guidance on how to leverage layer caching to enhance the speed of the Docker image build process. Any assistance would be greatly appreciated

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,973 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.