WillemVH commited on
Commit
6998252
·
verified ·
1 Parent(s): ed36b96

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,16 +1,17 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  ffmpeg \
7
  && rm -rf /var/lib/apt/lists/*
8
 
 
9
  COPY requirements.txt .
10
- RUN pip install --no-cache-dir --upgrade pip && \
11
- pip install --no-cache-dir av==10.0.0 --no-binary av && \
12
- pip install --no-cache-dir -r requirements.txt
13
 
 
14
  COPY app.py .
15
 
16
  EXPOSE 7860
 
1
+ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Install ffmpeg only (no compilation needed)
6
  RUN apt-get update && apt-get install -y \
7
  ffmpeg \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Copy requirements and install
11
  COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
13
 
14
+ # Copy app
15
  COPY app.py .
16
 
17
  EXPOSE 7860