Spaces:
Paused
Paused
KAI
deploy: HF Spaces prep — Dockerfile (port 7700), requirements, README w/ HF frontmatter, setup script
399e0c1 Download Dockerfile from sampson119/agentpub: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/spaces/sampson119/agentpub/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sampson119/agentpub/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sampson119/agentpub/resolve/main/Dockerfile
652 Bytes
| FROM python:3.13-slim | |
| WORKDIR /app | |
| # System deps for uvicorn[standard] (uvloop + httptools build cleanly on slim) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python deps first (better layer caching) | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy source | |
| COPY . /app/ | |
| # Expose AgentPub port (NOT HF default 7860 — must be 7700 to match server/main.py) | |
| EXPOSE 7700 | |
| # Run the FastAPI server on port 7700 | |
| # server/main.py has `if __name__ == "__main__": uvicorn.run(app, host="0.0.0.0", port=7700)` | |
| CMD ["python", "-m", "server.main"] | |