Spaces:
Sleeping
Sleeping
| # 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 requirements file into container | |
| COPY test_req.txt . | |
| # 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 test_req.txt | |
| # Copy application code into container | |
| COPY app.py . | |
| # Expose Gradio’s default port | |
| EXPOSE 7860 | |
| # Command to run the app | |
| CMD ["python", "app.py"] | |