-
Notifications
You must be signed in to change notification settings - Fork 790
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
COPY a file into image if it exists #5902
Comments
Hi @sparkwj , I just tried on latest upstream buildah and it worked fine for me. FROM alpine
RUN mkdir dest
COPY req.tx[t] /dest
RUN cat /dest/req.txt Could you please let me know which version are you trying this with ? |
spark@MacBook-Pro test % podman build .
spark@MacBook-Pro test % podman info
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/31528384/conditional-copy-add-in-dockerfile
COPY requiements.tx[t] /destination
this command working well with docker, but when build with podman, it throw error "no such file or directory" while file requiements.txt not exists. podman not support the COPY pattern?
The text was updated successfully, but these errors were encountered: