FaceForge / Dockerfile
Tomastarau's picture
fix: add missing system libs for mediapipe and opencv
f39ca9f
raw
history blame contribute delete
380 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
libxcb1 \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY backend/ ./backend/
COPY dist/ ./dist/
WORKDIR /app/backend
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]