mcp_mod_test / Dockerfile
mtyrrell's picture
test
9a00c34
raw
history blame
470 Bytes
# -------- base image --------
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
OMP_NUM_THREADS=1 \
TOKENIZERS_PARALLELISM=false
#GRADIO_MCP_SERVER=True
# -------- install deps --------
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# -------- copy source --------
COPY app ./app
COPY model_params.cfg .
# Ports:
# • 7860 → Gradio UI (HF Spaces standard)
EXPOSE 7860
CMD ["python", "-m", "app.main"]