Skip to content

Commit fb2ff93

Browse files
committed
chore(build): add dockerfile
1 parent 9bd1d91 commit fb2ff93

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM python:3.6.4
2+
3+
RUN mkdir -p app
4+
5+
WORKDIR /app
6+
7+
COPY . /app
8+
9+
10+
RUN pip install -r requirements.txt
11+
12+
13+
ENV FLASK_APP=hello.py
14+
15+
EXPOSE 80
16+
17+
18+
ENTRYPOINT ["flask","run","--port", "80", "--host", "0.0.0.0"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ It is using python `3.6.4`
1010

1111
# Run
1212
- `FLASK_APP=hello.py flask run` runs on port `5000`
13-
- `FLASK_APP=hello.py flask run --port=80`
13+
- `FLASK_APP=hello.py flask run --port=80 --host=0.0.0.0` runs on port 80 and the server is accessable by external calls

0 commit comments

Comments
 (0)