File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ LABEL maintainer="lorenz.vanthillo@gmail.com"
33COPY . /app
44WORKDIR /app
55RUN pip install -r requirements.txt
6- EXPOSE 5000
6+ EXPOSE 8080
77ENTRYPOINT ["python" ]
88CMD ["app/app.py" ]
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ docker pull lvthillo/python-flask-docker
1717### Run the container
1818Create a container from the image.
1919```
20- $ docker run --name my-container -d -p 5000:5000 lvthillo/python-flask-docker
20+ $ docker run --name my-container -d -p 8080:8080 lvthillo/python-flask-docker
2121```
2222
23- Now visit http://localhost:5000
23+ Now visit http://localhost:8080
2424Example of expected output:
2525```
2626 The hostname of the container is 6095273a4e9b and its IP is 172.17.0.2.
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ def index():
1414
1515
1616if __name__ == "__main__" :
17- app .run (debug = True , host = '0.0.0.0' )
17+ app .run (host = '0.0.0.0' , port = 8080 )
You can’t perform that action at this time.
0 commit comments