# Use an official Python image as a base FROM python:3.9 # Set the working directory WORKDIR /app # Copy project files COPY requirements.txt . COPY app.py . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose port 7860 for Gradio EXPOSE 7860 # Run the Gradio app CMD ["python", "app.py"]