FROM python:3.10-slim-bookworm # Set working directory WORKDIR /app # Copy requirements file COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the application code COPY . . # Set environment variables (if needed - adjust as required) ENV GRADIO_SERVER_PORT=7860 ENV GRADIO_SERVER_NAME=0.0.0.0 # Expose the Gradio port EXPOSE 7860 # Command to run the Gradio app CMD ["python", "app.py"]