Skip to content

Commit 6b4d060

Browse files
committed
Update app to run on port 8080
1 parent 5e7ad3f commit 6b4d060

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ LABEL maintainer="lorenz.vanthillo@gmail.com"
33
COPY . /app
44
WORKDIR /app
55
RUN pip install -r requirements.txt
6-
EXPOSE 5000
6+
EXPOSE 8080
77
ENTRYPOINT ["python"]
88
CMD ["app/app.py"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ docker pull lvthillo/python-flask-docker
1717
### Run the container
1818
Create 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
2424
Example of expected output:
2525
```
2626
The hostname of the container is 6095273a4e9b and its IP is 172.17.0.2.

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ def index():
1414

1515

1616
if __name__ == "__main__":
17-
app.run(debug=True,host='0.0.0.0')
17+
app.run(host='0.0.0.0', port=8080)

0 commit comments

Comments
 (0)