This repository was archived by the owner on Apr 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ RUN apt-get install -y python3.3
35
35
ENV PROJECT myproject
36
36
37
37
# Source
38
- ADD . /srv/${ PROJECT}
39
- RUN cd /srv/${ PROJECT}
38
+ ADD . /srv/$PROJECT
39
+ RUN cd /srv/$PROJECT
40
40
41
41
# Virtual environment
42
42
# Uncomment the following line to run inside a venv.
@@ -58,6 +58,6 @@ EXPOSE 8000
58
58
59
59
RUN chmod +x /srv/$PROJECT/entrypoint.py
60
60
61
- # Change this to point to your entrypoint.
62
- ENTRYPOINT ["/srv/myproject /entrypoint.py" ]
63
- CMD ["--help" ]
61
+ # Uncomment the following line to your container behave like a binary.
62
+ # ENTRYPOINT ["/srv/<project> /entrypoint.py"]
63
+ # CMD ["--help"]
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ it in `Dockerfile` environment variable `PROJECT`.
30
30
Entrypoint
31
31
----------
32
32
33
- You have the option to let your dockerized application behave like a binary
34
- to do that just put your start code in ` entrypoint.py ` and it will take care
35
- to initialize your application when you run :
33
+ You have the option to let your dockerized application behave like a binary,
34
+ to do that just edit and uncomment the last lines ` Dockerfile ` , so it will
35
+ take care to run your application when you call :
36
36
37
37
$ sudo docker run wiliamsouza/python
38
38
You can’t perform that action at this time.
0 commit comments