Skip to content
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

Add support for .dockerignore (or similar mechanism) #12

Open
tristanpemble opened this issue Feb 21, 2022 · 1 comment
Open

Add support for .dockerignore (or similar mechanism) #12

tristanpemble opened this issue Feb 21, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@tristanpemble
Copy link

I started to look into adding support for .dockerignore files when creating the build context, but I'm afraid I have no idea what I am doing. Seems like you can pull most of what you need from the standard Buildkit builder

Right now copying the build context takes quite a while due to my repository with a multi-gigabyte Git history

@tristanpemble tristanpemble changed the title Add support for .dockerignore Add support for .dockerignore (or similar mechanism) Feb 21, 2022
@AkihiroSuda AkihiroSuda added the enhancement New feature or request label Feb 21, 2022
@AkihiroSuda
Copy link
Member

Yes, we can just take this part from the Dockerfile frontend
https://github.com/moby/buildkit/blob/a1cfefeaeb66501a95a4d2f5858c939211f331ac/frontend/dockerfile/builder/build.go#L895-L910

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants