Spaces:
Sleeping
Sleeping
Download Dockerfile from PCelia/futurisys-api: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/spaces/PCelia/futurisys-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PCelia/futurisys-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PCelia/futurisys-api/resolve/main/Dockerfile
355 Bytes
| FROM python:3.13-slim | |
| WORKDIR /code | |
| # Installer uv | |
| RUN pip install uv | |
| # Copier les fichiers nécessaires | |
| COPY pyproject.toml uv.lock ./ | |
| # Installer les dépendances via uv | |
| RUN uv sync --frozen | |
| # Copier le reste du code | |
| COPY . . | |
| EXPOSE 7860 | |
| # Lancer FastAPI via uv | |
| CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |