Spaces:
Running
Running
File size: 737 Bytes
f73536b b2761ec f73536b 289e288 f73536b 7ad8637 f73536b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | # 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"]
|