-
-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement]: Support for custom .dockerignore files #1182
Comments
Nobody? |
I am not going to implement this soon, but if someone would like to implement this feature in the meantime, I would like to provide some guidance. The
We need to pass the correct file name. We can (probably) simply check whether a specific ignore file exists for the |
I have a branch ready with this change but I get an error when trying to push the branch:
I have to be made contributer or something @HofmeisterAn ? |
You cannot simply push to the repository, please see: Contributing to a project. |
Hi @pvervaet, I'm looking to implement this also - can you share what you have done so far? |
Hi @ifan-t, my priorities shifted and was not able to spend any time on this yet. I am however still interested in a solution as it will be needed in the future. Also it seems like a no-brainer to support this. |
@pvervaet understood. This is how I've done it, just need to add tests ifan-t@dc31914 |
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
The text was updated successfully, but these errors were encountered: