aws/aws-cdk

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

Open

#17 686 ouverte le 24 nov. 2021

Voir sur GitHub
 (6 commentaires) (1 réaction) (0 assignés)TypeScript (3 530 forks)batch import
@aws-cdk/aws-ecr-assetsbuggood first issuein-progressp2

Métriques du dépôt

Stars
 (10 710 stars)
Métriques de merge PR
 (Merge moyen 14j 11h) (68 PRs mergées en 30 j)

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

Guide contributeur