rastof9 commited on
Commit
319ba2b
·
verified ·
1 Parent(s): 451a562

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+ COPY requirements.txt .
5
+ RUN pip install -r requirements.txt
6
+
7
+ COPY . .
8
+
9
+ ENV FLASK_APP=manage.py
10
+ ENV FLASK_ENV=production
11
+
12
+ EXPOSE 5000
13
+ CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "app:create_app()"]