scipious commited on
Commit
eb64c89
·
verified ·
1 Parent(s): 28a88fe

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+ WORKDIR /app
3
+ RUN apt-get update && apt-get install -y gcc g++ && rm -rf /var/lib/apt/lists/*
4
+ COPY requirements.txt .
5
+ RUN pip install --no-cache-dir -r requirements.txt
6
+ COPY . .
7
+ EXPOSE 7860
8
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--worker-class", "eventlet", "--workers", "1", "app:socketio"]