vatsal-p-wa commited on
Commit
b8a3a9c
·
verified ·
1 Parent(s): 2dbc96c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # syntax=docker/dockerfile:1
2
+
3
+ FROM python:3.8-slim-buster
4
+
5
+ WORKDIR /python-docker
6
+
7
+ COPY requirements.txt requirements.txt
8
+ RUN pip3 install -r requirements.txt
9
+
10
+ EXPOSE 7860
11
+
12
+ COPY . .
13
+
14
+ ENV FLASK_APP=app.py
15
+
16
+ CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=7860"]