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 parents
option to dockerfile COPY command
#35639
Comments
Related discussion in BuildKit: moby/buildkit#396 |
This is very much needed with the rise of Node monorepos. If I have a
If COPY --parents packages/*/package.json apps/*/package.json /path/to/app/
# The container should now have `/path/to/app/packages/foo/package.json`,
# `/path/to/app/packages/bar/package.json`,
# `/path/to/app/apps/baz/package.json`, and so on. |
There's a work-in-progress pull request in BuildKit implementing this; |
Docs on COPY command state:
I think it would be useful to have be able to have as a copy result
<dest>/<src>
.This would allow combining in one COPY command files from different folders in the context, this can be useful when trying to optimize for example node apps builds:
Currently, have to split COPY commands for this case or do something else less optimal.
The text was updated successfully, but these errors were encountered: