# Use the official Python image as a base FROM python:3.10-slim # Set the working directory WORKDIR /app # Copy the app files into the container COPY . /app # Install system dependencies required by some Python packages RUN apt-get update && apt-get install -y \ git \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir -r requirements.txt # Expose the default port for Hugging Face Spaces (7860) EXPOSE 7860 # Command to run your Gradio app CMD ["python", "app.py"]