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 --parents option for COPY in Dockerfiles #5557

Open
uckelman opened this issue May 31, 2024 · 4 comments
Open

Add --parents option for COPY in Dockerfiles #5557

uckelman opened this issue May 31, 2024 · 4 comments

Comments

@uckelman
Copy link

Description

Docker added a --parents option to the Dockerfile COPY command last year:

moby/moby#35639
moby/buildkit#3001
https://docs.docker.com/reference/dockerfile/#copy---parents

buildah doesn't know how to handle COPY --parents so errors out on Dockerfiles which use it.

I'm seeing increasing use of --parents in Dockerfiles I have to deal with, which is making it hard to use podman/buildah instead of Docker. --parents is also a genuinely useful option on its own, so would be nice to have not just for compatibility.

It's quite useful to be able to do things like

COPY --parents src/**/pyproject.toml src/**/poetry.lock /app/

and maintain the directory structure in the destination without having to list out every single file.

@TomSweeneyRedHat
Copy link
Member

I believe @mheon is either working on this or looking into this. Matt?

@mheon
Copy link
Member

mheon commented Jun 5, 2024

Yep, hoping to get to this over the next few weeks

Copy link

github-actions bot commented Jul 6, 2024

A friendly reminder that this issue had no activity for 30 days.

@cyqsimon
Copy link

This is so badly needed with Java projects that involve multiple pom.xml files. Any progress on this?

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

No branches or pull requests

4 participants