FROM python:3.10-slim WORKDIR /app # System deps commonly needed for pillow/matplotlib and general stability RUN apt-get update && apt-get install -y --no-install-recommends \ git \ git-lfs \ ffmpeg \ libsm6 \ libxext6 \ libgl1 \ && rm -rf /var/lib/apt/lists/* \ && git lfs install # Install python deps COPY requirements.txt /app/requirements.txt RUN pip install --no-cache-dir -U pip && \ pip install --no-cache-dir -r /app/requirements.txt # Copy app + artifacts COPY . /app # Hugging Face sets PORT sometimes; default to 7860 ENV GRADIO_SERVER_NAME=0.0.0.0 ENV GRADIO_SERVER_PORT=7860 EXPOSE 7860 CMD ["python", "app.py"]