Skip to content

Remove LICENSE file from .dockerignore #1331

@philliphoff

Description

@philliphoff

Including the LICENSE file in the scaffolded .dockerignore file seems like an aggressive optimization. There is at least one case where an application had an existing Dockerfile but not an existing .dockerignore file, where the Dockerfile specifically references the LICENSE file it expects to be in the Docker build context. The scaffolded files and debug tasks/configuration therefore fail to build the Docker image.

While this may just be a one-off concern, unless there are overwhelming advantages of excluding a LICENSE file from the default Docker context, I'm not sure it's absolutely necessary and we should consider removing the exclusion.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions