Spaces:
Sleeping
Sleeping
File size: 952 Bytes
f7645ea 6ac7b76 60729a2 f7645ea 44ed412 9b4e910 4bd3968 60729a2 44ed412 60729a2 44ed412 60729a2 6ac7b76 44ed412 60729a2 f7645ea 60729a2 44ed412 60729a2 6ac7b76 44ed412 60729a2 44ed412 60729a2 44ed412 |
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
FROM python:3.10-bullseye
# --- Install system dependencies (for OpenCV, MediaPipe, TensorFlow, aiortc, PyAV)
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libatlas-base-dev \
ffmpeg \
pkg-config \
libavformat-dev \
libavcodec-dev \
libavdevice-dev \
libavutil-dev \
libavfilter-dev \
libswscale-dev \
libswresample-dev \
libv4l-dev \
libssl-dev \
libffi-dev \
build-essential \
cmake \
git \
&& rm -rf /var/lib/apt/lists/*
# --- Work directory
WORKDIR /app
# --- Copy dependencies first for caching
COPY requirements.txt .
# --- Upgrade pip and install requirements
RUN pip install --upgrade pip setuptools wheel
RUN pip install --no-cache-dir --verbose -r requirements.txt
# --- Copy all source files
COPY . .
# --- Expose default HF Space port
EXPOSE 7860
# --- Start Flask app
CMD ["python", "app.py"]
|