Spaces:
Sleeping
Sleeping
File size: 545 Bytes
9bcc80f | 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 | # Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Install system dependencies (needed for OpenCV and MediaPipe)
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy your folder into the container
COPY . /app
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Hugging Face usually uses port 7860 by default
ENV PORT=7860
EXPOSE 7860
# Start the service
CMD ["python", "main.py"]
|