Spaces:
Sleeping
Sleeping
Download Dockerfile from ksk76/structural-encoder-uplan: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/ksk76/structural-encoder-uplan/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ksk76/structural-encoder-uplan/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ksk76/structural-encoder-uplan/resolve/main/Dockerfile
409 Bytes
| # Use official Python image | |
| FROM python:3.11 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of your app (server.py, ui folder, agents, etc.) | |
| COPY . . | |
| # Hugging Face exposes port 7860 | |
| EXPOSE 7860 | |
| # Start FastAPI via Uvicorn | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] |