ministerchief commited on
Commit
5bb8ea4
·
verified ·
1 Parent(s): 1c9424e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+
7
+ RUN pip install --no-cache-dir --upgrade pip && \
8
+ pip install --no-cache-dir -r requirements.txt
9
+
10
+ COPY . .
11
+
12
+ ENV PYTHONUNBUFFERED=1
13
+ ENV PORT=7860
14
+
15
+ EXPOSE 7860
16
+
17
+ CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]