Spaces:
Running
Running
File size: 518 Bytes
347d1a8 a3772cc 347d1a8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | FROM python:3.11-slim
# System deps required by OpenCV and MediaPipe
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libgl1 libgles2 libegl1 libglib2.0-0 && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Ensure upload/result dirs exist
RUN mkdir -p web_demo/uploads web_demo/results
ENV PORT=7860
EXPOSE ${PORT}
CMD gunicorn --bind 0.0.0.0:${PORT} --timeout 120 --workers 2 web_demo.app:app
|