Dockerfile error: When using COPY.....
See original GitHub issuein client docker file. ( i also suspect this error would come in server dockerfile also)
Progress: resolved 1, reused 0, downloaded 1, added 1, done
Removing intermediate container 2606ad630ed1
---> 79aa7a5ff69b
Step 20/30 : COPY --from=builder /app/pnpm-*.yaml .
2 errors occurred:
* Status: When using COPY with more than one source file, the destination must be a directory and end with a /, Code: 1
* Status: When using COPY with more than one source file, the destination must be a directory and end with a /, Code: 1
Looks like the dockerfile needs to be updated for Docker 18 as mentioned here.
or even just changing .
to ./
here and other locations should work
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
COPYing a file in a Dockerfile, no such file or directory?
The files are in the same directory as my Dockerfile and I am running the command docker build - < Dockerfile in the...
Read more >Docker COPY failed: stat no source files were specified - Jhooq
6 Ways to fix – Docker COPY failed: stat no source files were specified · Source path is incorrect · Incorrect file ·...
Read more >Dockerfile COPY cannot find the file | by Stanley Meng - Medium
Dockerfile COPY cannot find the file. You might get this error when COPY a file from host to the container. COPY failed: file...
Read more >Docker COPY fails with no such file or directory, but i am root ...
Docker COPY <src> is interpreted as relative path to the docker build context. See the documentation.
Read more >Why docker build error on copy? · Issue #384 - GitHub
My docker file: FROM wyveo/nginx-php-fpm:php73 COPY test.txt . when run docker build - < Dockerfile -t nnn see this error: ` failed to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i still cannot register for an account. Here is my env file. Google API key shouldn’t be a problem at this stage since its used for fonts only.
Yes, the issue has been solved.