nbugs commited on
Commit
05cca21
verified
1 Parent(s): fa70c7b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ COPY . .
9
+
10
+ # 璁剧疆鐜鍙橀噺
11
+ ENV FLASK_APP=app.py
12
+ ENV FLASK_ENV=production
13
+
14
+ # 鏆撮湶绔彛
15
+ EXPOSE 7860
16
+
17
+ # 鍚姩鍛戒护
18
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]