DockerImageAsset: exclude option is ignored #4353
Labels
@aws-cdk/aws-ecr
Related to Amazon Elastic Container Registry
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
DockerImageAsset is documented that it has
exclude?
property.Then, I specified my image such as below:
It worked until v1.9.0, but the property is ignored since v1.10.0.
I found 8389eeb is just overriding the
exclude
property.Workaround is to list those files into
.dockerignore
. But .dockerignore andexclude
option behaves a little different.Reproduction Steps
cdk.out shouldn't include those files listed in
exclude
option.Environment
Other
I just wanted to avoid this issue: #3899
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: