-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.worker
More file actions
27 lines (22 loc) · 808 Bytes
/
Copy pathDockerfile.worker
File metadata and controls
27 lines (22 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.12-slim
WORKDIR /app
# System deps:
# ffmpeg — reframe processing
# libgl1 / libglib2.0-0 — OpenCV (scenedetect/mediapipe pull non-headless cv2)
# libegl1 / libgles2 — MediaPipe needs libEGL.so.1 / libGLESv2.so.2, else it
# silently falls back to the weak Haar cascade detector.
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
libgl1 \
libglib2.0-0 \
libegl1 \
libgles2 \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies (same as API)
COPY api/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy backend code (worker imports from api/)
COPY api/ ./api/
COPY workers/ ./workers/
ENV PORT=8080
CMD ["python", "workers/unified_worker.py"]