# Use the base image FROM python:3.12 # Set environment variables to avoid Python writing .pyc files and buffering logs ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Set working directory WORKDIR /app # Copy everything from the current directory to the working directory in the container COPY . . # RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* RUN pip install --upgrade pip # Install Gradio with MCP support RUN pip install -r requirements.txt # Expose Gradio’s default port EXPOSE 7860 # Command to run the app CMD ["python", "app.py"]