factblink514 commited on
Commit
957ca9f
·
verified ·
1 Parent(s): 3fcf24b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -2,10 +2,8 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- RUN apt-get update && apt-get install -y \
6
- ffmpeg \
7
- git \
8
- && rm -rf /var/lib/apt/lists/*
9
 
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
@@ -14,4 +12,4 @@ COPY app.py .
14
 
15
  EXPOSE 7860
16
 
17
- CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install FFmpeg
6
+ RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
 
 
7
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
 
12
 
13
  EXPOSE 7860
14
 
15
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--threads", "4", "--timeout", "120", "app:app"]