Skip to content

Cannot copy file from host (Dockerfile COPY) #604

Answered by AkihiroSuda
nebiros asked this question in Q&A
Discussion options

You must be logged in to vote

COPY /tmp/lima/sammi-api /usr/local/bin/sammi-api

You can't specify an abstract path in Dockerfile COPY.
The path has to be a relative path inside the build context dir (defaults to the current dir).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nebiros
Comment options

Answer selected by nebiros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #603 on January 28, 2022 04:07.