File size: 789 Bytes
dee34fb
 
 
 
 
9d0e6df
 
 
 
dee34fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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"]