(core): add tag parameter to BundlingDockerImage.from_asset to tag the docker image and keep it cached #11936
Labels
@aws-cdk/core
Related to core CDK functionality
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
It would be nice if the
from_asset
method inBundlingDockerImage
could accept a tag (or similar) parameter and use that to tag the docker image that it's building.Use Case
Currently, the output image is completely untagged, which leads to it getting deleted whenever I run
docker image prune
and then CDK has to rebuild it from scratch the next time I run deploy.Proposed Solution
If CDK tags the image, it will keep the latest version (or all if the tag changes) saved locally to act as a build cache for future builds, saving on build time.
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: