question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dockerfile error: When using COPY.....

See original GitHub issue

in 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:closed
  • Created 2 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
HritwikSinghalcommented, Mar 11, 2022

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.

# App
TZ=UTC
SECRET_KEY=change-me

# URLs
PUBLIC_URL=http://localhost:3000
PUBLIC_SERVER_URL=http://localhost:3100

# Database
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DATABASE=reactive_resume

# Auth
JWT_SECRET=change-me
JWT_EXPIRY_TIME=604800

# Google
GOOGLE_API_KEY=change-me

0reactions
HritwikSinghalcommented, Mar 11, 2022

Yes, the issue has been solved.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found