FROM python:3.10-slim # Set working directory WORKDIR /app # Copy requirements and install dependencies COPY requirements.txt . RUN pip install --upgrade pip && pip install -r requirements.txt # Copy application code COPY app.py . # Expose port for Gradio EXPOSE 7860 # Run the app CMD ["python", "app.py"]