-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 an additional --exclude option to COPY instruction for the files or folders to be excluded while copying them #2853
Comments
MaxymVlasov
added a commit
to antonbabenko/pre-commit-terraform
that referenced
this issue
Apr 21, 2023
There is no posibility to exclude part of "pre-installed" files from COPY step like moby/buildkit#2853 And copy-paste mostly all `site-packages` without it is not worth it
MaxymVlasov
added a commit
to antonbabenko/pre-commit-terraform
that referenced
this issue
Apr 21, 2023
…#507) * Docker doesn't provide possibilities for avoiding trash There is no possibility to exclude part of the "pre-installed" files from COPY steps like moby/buildkit#2853 And copy-paste mostly all `site-packages` without it is not worth it
An attempt to implement this feature (without support of the |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AFAIK, COPY instruction already has support some basic level of regexp to exclude files or folders, but, with this option, we'd enhance this functionality. To be more precise, I'd recommended adding an additional --exclude option to docker/dockerfile frontend to let people specify which files or folders to be excluded while copying them:
would it make sense? @crazy-max @Dentrax
The text was updated successfully, but these errors were encountered: