aws/aws-cdk

(aws-ecr-assets): Dockerfile.dockerignore is not used

Open

#17,686 opened on 2021年11月24日

GitHub で見る
 (6 comments) (1 reaction) (0 assignees)TypeScript (3,530 forks)batch import
@aws-cdk/aws-ecr-assetsbuggood first issuein-progressp2

Repository metrics

Stars
 (10,710 stars)
PR merge metrics
 (平均マージ 14d 11h) (30d で 68 merged PRs)

説明

What is the problem?

.. instead .dockerfile needs to be present. Docker it self supports Dockerfile.dockerignore - which is useful when -f (dockerfile prop) is given

Reproduction Steps

new ecrAssets.DockerImageAsset(this, 'MyImage', {
            directory: path.join(__dirname, '..', '..'),
 });

What did you expect to happen?

Give -f MyDockerFile (dockerfile: MyDockerFile) then still .dockerignore is needed

What actually happened?

MyDockerFile.dockerignore is considered for exclusion

CDK CLI Version

1.130.0

Framework Version

No response

Node.js Version

16.13.0

OS

macOS

Language

Typescript

Language Version

4.5.2

Other information

No response

コントリビューターガイド