Spaces:
Running
Running
File size: 898 Bytes
af19401 ad2cbc4 af19401 ad2cbc4 af19401 ad2cbc4 af19401 ad2cbc4 af19401 517c2d9 | 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 | FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
ENABLE_WEB_INTERFACE=true \
PORT=7860 \
PYTHONPATH=/app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY . /app
# Install the package + Gradio UI deps (anthropic / openai / gradio for the BYOK UI).
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir . && \
pip install --no-cache-dir 'gradio>=5.0.0' anthropic openai huggingface_hub structlog pyyaml
EXPOSE 7860
# app.py exposes a module-level ``app`` object that is the FastAPI server with
# Gradio mounted at /. Single port (7860) serves both the UI at / and every
# OpenEnv / MCP / metadata route at /tasks /step /reset /mcp /health /info etc.
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|