blanchon commited on
Commit
03537af
·
1 Parent(s): 02eac4b
Files changed (2) hide show
  1. Dockerfile +11 -0
  2. server/pyproject.toml +4 -1
Dockerfile CHANGED
@@ -26,6 +26,17 @@ RUN bun run build
26
  # Stage 2: Python backend with uv
27
  FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
28
 
 
 
 
 
 
 
 
 
 
 
 
29
  # Set up a new user named "user" with user ID 1000 (required for HF Spaces)
30
  RUN useradd -m -u 1000 user
31
 
 
26
  # Stage 2: Python backend with uv
27
  FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
28
 
29
+ # Install system dependencies needed for video processing
30
+ RUN apt-get update && apt-get install -y \
31
+ libavformat-dev \
32
+ libavcodec-dev \
33
+ libavdevice-dev \
34
+ libavutil-dev \
35
+ libswscale-dev \
36
+ libswresample-dev \
37
+ pkg-config \
38
+ && rm -rf /var/lib/apt/lists/*
39
+
40
  # Set up a new user named "user" with user ID 1000 (required for HF Spaces)
41
  RUN useradd -m -u 1000 user
42
 
server/pyproject.toml CHANGED
@@ -6,9 +6,12 @@ readme = "README.md"
6
  requires-python = ">=3.12"
7
  dependencies = [
8
  "fastapi>=0.115.12",
9
- "opencv-python>=4.11.0.86",
10
  "pydantic>=2.11.5",
11
  "uvicorn[standard]>=0.34.3",
 
 
 
12
  ]
13
 
14
  [dependency-groups]
 
6
  requires-python = ">=3.12"
7
  dependencies = [
8
  "fastapi>=0.115.12",
9
+ "opencv-python-headless>=4.11.0.86",
10
  "pydantic>=2.11.5",
11
  "uvicorn[standard]>=0.34.3",
12
+ "av>=12.0.0",
13
+ "aiortc>=1.6.0",
14
+ "numpy>=1.24.0",
15
  ]
16
 
17
  [dependency-groups]