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?

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ