Spaces:
Sleeping
Sleeping
| # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
| # AlphaGenome MCP Service Dockerfile | |
| FROM python:3.10 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy the entire project | |
| COPY --chown=user . /app | |
| # Return to app directory | |
| WORKDIR /app | |
| # Set environment variables | |
| ENV MCP_PORT=7860 | |
| ENV MCP_TRANSPORT=http | |
| ENV ALPHAGENOME_API_KEY=AIzaSyCOOjmyDxZTFE2vcQ2vNzO7WBLKMp6ZhfQ | |
| # Expose port 7860 for Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Start the MCP service | |
| CMD ["python", "alphagenome/mcp_output/start_mcp.py"] | |