Deepfake-things / Dockerfile
Nick-2x's picture
Update Dockerfile
4cccb70 verified
raw
history blame contribute delete
399 Bytes
FROM python:3.10-slim
# Install modern system dependencies for OpenCV
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose the HF default port
EXPOSE 7860
CMD ["python", "app.py"]