Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit e0fc262

Browse files
committed
Updated doc about entrypoint and make it optional and fixed some env vars
1 parent ee9e4a2 commit e0fc262

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ RUN apt-get install -y python3.3
3535
ENV PROJECT myproject
3636

3737
# Source
38-
ADD . /srv/${PROJECT}
39-
RUN cd /srv/${PROJECT}
38+
ADD . /srv/$PROJECT
39+
RUN cd /srv/$PROJECT
4040

4141
# Virtual environment
4242
# Uncomment the following line to run inside a venv.
@@ -58,6 +58,6 @@ EXPOSE 8000
5858

5959
RUN chmod +x /srv/$PROJECT/entrypoint.py
6060

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"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ it in `Dockerfile` environment variable `PROJECT`.
3030
Entrypoint
3131
----------
3232

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:
3636

3737
$ sudo docker run wiliamsouza/python
3838

0 commit comments

Comments
 (0)