Spaces:
Sleeping
Sleeping
Download Dockerfile from RubenVierstraete/fastapi-space: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/RubenVierstraete/fastapi-space/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RubenVierstraete/fastapi-space/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RubenVierstraete/fastapi-space/resolve/main/Dockerfile
356 Bytes
| # 1️⃣ Base image | |
| FROM python:3.10-slim | |
| # 2️⃣ Werkomgeving | |
| WORKDIR /app | |
| # 3️⃣ Dependencies installeren | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 4️⃣ Copy de app | |
| COPY . . | |
| # 5️⃣ Expose port | |
| EXPOSE 7860 | |
| # 6️⃣ Start FastAPI server | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |