File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11FROM google/python-runtime
2- ENTRYPOINT ["/env/bin/python" , "/app/main.py" ]
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ ONBUILD ADD . /app
88
99EXPOSE 8080
1010CMD []
11+ ENTRYPOINT ["/env/bin/python" , "main.py" ]
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ It is based on [`google/python`](https://index.docker.io/u/google/python) base i
99- Create a Dockerfile in your python application directory with the following content:
1010
1111 FROM google/python-runtime
12- ENTRYPOINT ['/env/bin/python', '/app/main.py']
1312
1413- Run the following command in your application directory:
1514
@@ -24,7 +23,9 @@ It is based on [`google/python`](https://index.docker.io/u/google/python) base i
2423
2524The image assumes that your application:
2625
27- - has a [ ` requirements.txt ` ] ( https://pip.pypa.io/en/latest/user_guide.html#requirements-files ) file to specify its dependencies.
26+ - has a [ ` requirements.txt ` ] ( https://pip.pypa.io/en/latest/user_guide.html#requirements-files ) file to specify its dependencies
2827- listens on port ` 8080 `
28+ - either has a ` main.py ` script as entrypoint or defines ` ENTRYPOINT ["/env/bin/python", "/app/some_other_file.py"] ` in its ` Dockerfile `
29+
2930
3031When building your application docker image, dependencies of your application are automatically fetched in a virtualenv using ` pip install ` .
You can’t perform that action at this time.
0 commit comments