X Tutup
The Wayback Machine - https://web.archive.org/web/20210109034541/https://github.com/docker/labs/issues/381
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

COPY failed: stat ......: no such file or directory #381

Open
averybai opened this issue Nov 28, 2017 · 4 comments
Open

COPY failed: stat ......: no such file or directory #381

averybai opened this issue Nov 28, 2017 · 4 comments

Comments

@averybai
Copy link

@averybai averybai commented Nov 28, 2017

Hello sir
when i follow your Tutorial , I was stop at Docker for Java Developers -> Build a Docker Image ->Create your first image using Java -> Package and run Java application as Docker image

      the error message is : COPY failed: stat /var/lib/docker/tmp/docker-builder037642014/target/java_docker-1.0-SNAPSHOT.jar: no such file or directory

      I am new to docker ,would you help me to resolve this ?
@ManoMarks
Copy link
Contributor

@ManoMarks ManoMarks commented Nov 28, 2017

@arun-gupta can you take a look?

@tolerious
Copy link

@tolerious tolerious commented Mar 17, 2018

I alse meet the same problem. @ManoMarks @arun-gupta
image
This is my Dockerfile

# our base image
FROM alpine:3.5

# Install python and pip
RUN apk add --update py2-pip

# install Python modules needed by the Python app
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt

# copy files required for the app to run
COPY app.py /usr/src/app/
COPY templates/index.html /usr/src/app/templates/

# tell the port number the container should expose
EXPOSE 5000

# run the application
CMD ["python", "/usr/src/app/app.py"]
@nayash
Copy link

@nayash nayash commented Jun 13, 2019

Hey Guys,

Any update on this? I am facing the same "requirements.txt" issue.

@tsmets
Copy link

@tsmets tsmets commented Jul 11, 2019

I have a very similar problem ... on Linux (not on Mac)

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.
X Tutup