Spaces:
Sleeping
Sleeping
File size: 478 Bytes
9a00c34 000787f 9a00c34 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# -------- 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 params.cfg .
COPY .env* ./
# Ports:
# • 7860 → Gradio UI (HF Spaces standard)
EXPOSE 7860
CMD ["python", "-m", "app.main"] |