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 /var/lib/docker/tmp/docker-builder192707116/start.sh: no such file or directory #52

Closed
hengaini2055 opened this issue Apr 27, 2018 · 3 comments

Comments

@hengaini2055
Copy link

ubuntu 18.04 desktop, docker

Docker version 17.12.1-ce, build 7390fc

When I run command: sudo docker build -t myimage . I get some errors follows:

hengaini2055@ubuntu:~/docker_flask$ sudo docker build -t myimage .
[sudo] hengaini2055 的密码: ********

Sending build context to Docker daemon  5.632kB
Step 1/17 : FROM tiangolo/uwsgi-nginx:python3.6
 ---> dadfb1bf0a6c
Step 2/17 : RUN pip install flask
 ---> Using cache
 ---> 2fa96d341119
Step 3/17 : ENV NGINX_MAX_UPLOAD 0
 ---> Using cache
 ---> 2e7d880ac1cd
Step 4/17 : ENV LISTEN_PORT 80
 ---> Using cache
 ---> bcd7a9ac98af
Step 5/17 : ENV UWSGI_INI /app/uwsgi.ini
 ---> Using cache
 ---> 0fb2e3ec14d4
Step 6/17 : ENV STATIC_URL /static
 ---> Using cache
 ---> 258e335c1df0
Step 7/17 : ENV STATIC_PATH /app/static
 ---> Using cache
 ---> 15aeda17eec3
Step 8/17 : ENV STATIC_INDEX 0
 ---> Using cache
 ---> 8428457afc49
Step 9/17 : COPY ./app /app
 ---> 9a9a7da78738
Step 10/17 : WORKDIR /app
Removing intermediate container b5e2b9573adb
 ---> 541731aa343f
Step 11/17 : ENV PYTHONPATH=/app
 ---> Running in 21f7a6760678
Removing intermediate container 21f7a6760678
 ---> c04c0208964f
Step 12/17 : COPY start.sh /start.sh
COPY failed: stat /var/lib/docker/tmp/docker-builder898591638/start.sh: no such file or directory
@tiangolo
Copy link
Owner

That's quite strange.

But you shouldn't need to copy a /start.sh file. If you need startup functionality you should use /app/prestart.sh: https://github.com/tiangolo/uwsgi-nginx-flask-docker#custom-appprestartsh

Unless you are doing custom modifications to the image for your specific purposes.

@hengaini2055
Copy link
Author

I make sense, that's my fault.

@tiangolo
Copy link
Owner

Cool, I'm glad you solved your problem. Thanks for reporting back and closing the issue.

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

No branches or pull requests

2 participants