CDK build container image only on dockerfile change.

0

As part of my CDK Python template, I am building a container, and it is uploaded to my ECR with the latest tag. However, the Dockerfile (that lives in GitHub) is rarely changed, but container is still rebuilt every time I deploy my CDK.

Is there a way to update the template to only build the container if Dockerfile is updated, as it will save time during the deployment?

AWS
已提問 1 年前檢視次數 68 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南