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"
3
3
COPY . /app
4
4
WORKDIR /app
5
5
RUN pip install -r requirements.txt
6
- EXPOSE 5000
6
+ EXPOSE 8080
7
7
ENTRYPOINT ["python" ]
8
8
CMD ["app/app.py" ]
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ docker pull lvthillo/python-flask-docker
17
17
### Run the container
18
18
Create a container from the image.
19
19
```
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
21
21
```
22
22
23
- Now visit http://localhost:5000
23
+ Now visit http://localhost:8080
24
24
Example of expected output:
25
25
```
26
26
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():
14
14
15
15
16
16
if __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