Spaces:
Sleeping
Sleeping
| FROM python:3.12-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| bedtools \ | |
| build-essential \ | |
| git \ | |
| zlib1g-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy server entry-point and tool modules from src/ | |
| COPY src/GLUE_Agent_mcp.py . | |
| COPY src/tools/ tools/ | |
| # Redirect I/O to /data so outputs survive across requests and can use | |
| # HF Spaces persistent storage if enabled | |
| ENV PREPROCESSING_INPUT_DIR=/data/inputs | |
| ENV PREPROCESSING_OUTPUT_DIR=/data/outputs | |
| ENV TRAINING_INPUT_DIR=/data/inputs | |
| ENV TRAINING_OUTPUT_DIR=/data/outputs | |
| RUN mkdir -p /data/inputs /data/outputs | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "GLUE_Agent_mcp:app", "--host", "0.0.0.0", "--port", "7860"] | |