aws/aws-cdk

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

Open

#17.686 aberto em 24 de nov. de 2021

Ver no GitHub
 (6 comments) (1 reaction) (0 assignees)TypeScript (3.530 forks)batch import
@aws-cdk/aws-ecr-assetsbuggood first issuein-progressp2

Métricas do repositório

Stars
 (10.710 stars)
Métricas de merge de PR
 (Mesclagem média 14d 11h) (68 fundiu PRs em 30d)

Description

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

Guia do colaborador