Problem
In my buildcontext there live several dockerfiles. Each one has it's own dockerignore file.
It seems like there is no way to specify a custom dockerignore file at the moment.
Would it be possible to support the standard approach for dockerignore files? https://docs.docker.com/build/building/context/#dockerignore-files
Solution
- Either support the custom naming convention and automatically pick the right dockerignore file
- Or have a way to specify the file
.WithDockerignore("/somefolder/custom.Dockerfile.dockerignore")
Benefit
- Support basic docker functionality
- Many dockerfiles will be useable within one context. Now it's more or less impossible.
Alternatives
I see the 2 proposed solutions as only options
Would you like to help contributing this enhancement?
No
Problem
In my buildcontext there live several dockerfiles. Each one has it's own dockerignore file.
It seems like there is no way to specify a custom dockerignore file at the moment.
Would it be possible to support the standard approach for dockerignore files? https://docs.docker.com/build/building/context/#dockerignore-files
Solution
.WithDockerignore("/somefolder/custom.Dockerfile.dockerignore")Benefit
Alternatives
I see the 2 proposed solutions as only options
Would you like to help contributing this enhancement?
No