FROM python:3.10-slim # Install system dependencies RUN apt-get update && apt-get install -y \ poppler-utils \ libgl1 \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* # Set environment variables for HF Spaces ENV GRADIO_SERVER_NAME=0.0.0.0 ENV GRADIO_SERVER_PORT=7860 # Install Python packages COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir -r /tmp/requirements.txt # Copy app code COPY . /app WORKDIR /app # Run your Gradio app (change as needed) CMD ["python", "app.py"]