aws/aws-cdk

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

Open

#17,686 创建于 2021年11月24日

在 GitHub 查看
 (6 评论) (1 反应) (0 负责人)TypeScript (3,530 fork)batch import
@aws-cdk/aws-ecr-assetsbuggood first issuein-progressp2

仓库指标

Star
 (10,710 star)
PR 合并指标
 (平均合并 14天 11小时) (30 天内合并 68 个 PR)

描述

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

贡献者指南