# Start with a Python base image FROM python:3.11-slim # Set the working directory WORKDIR /app # Copy the requirements file and install dependencies # We use --break-system-packages as this is a controlled Docker environment COPY requirements.txt /app/ RUN pip install --no-cache-dir -r requirements.txt --break-system-packages # Copy all application files (including data loader, plotting, Gradio app, and config files) COPY . /app/ # The port Gradio runs on EXPOSE 7860 # Define the command to start the Gradio application CMD ["python", "app.py"]