Skip to content

[Request]: container build should support Dockerfile-specific ignores. #1169

@jglogan

Description

@jglogan

Feature or enhancement request details

container build should first look for an ignore file that has the same pathname as the Dockerfile, with the .dockerignore suffix. If that isn't found, then the .dockerfile in the build context directory is used, if it exists.

The attached archive runs a set of tests to check conformance. The results for colima vs container are shown in the discussion

20260205-dockerignore-paths.tgz

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

builderIssues and features associated with container image building

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions