Skip to content

Commit 607a9f5

Browse files
committed
Create Dockerfile
1 parent 312a96e commit 607a9f5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3.8-slim-buster
2+
WORKDIR /app
3+
ADD requirements.txt .
4+
RUN pip3 install -r requirements.txt
5+
COPY . .
6+
RUN mkdir logs \
7+
&& touch ./logs/app.log \
8+
&& chmod 777 ./logs/app.log
9+
EXPOSE 8080
10+
CMD ["python", "./app.py"]

0 commit comments

Comments
 (0)