CrimsonREwind commited on
Commit
c7981ee
·
verified ·
1 Parent(s): 86112bd

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.12-slim
3
+
4
+ WORKDIR /app
5
+
6
+ COPY . /app
7
+
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ ENV FLASK_APP=main.py
11
+ ENV FLASK_RUN_HOST=0.0.0.0
12
+ ENV FLASK_RUN_PORT=7860
13
+
14
+ CMD ["gunicorn","-b", "0.0.0.0:7860", "main:app"]
15
+
16
+
17
+
18
+