Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download backend/Dockerfile.dev from fr-gouv-coordination-ia/llm_leaderboard_fr: direct link, hf CLI and curl.
- Browser
- Download file 707 Bytes
-
https://huggingface.co/spaces/fr-gouv-coordination-ia/llm_leaderboard_fr/resolve/e2dd0d8a818d68859b4ee84baaa27175b111dafa/backend/Dockerfile.dev
- Command line
-
hf download hf://spaces/fr-gouv-coordination-ia/llm_leaderboard_fr@e2dd0d8a818d68859b4ee84baaa27175b111dafa/backend/Dockerfile.dev
-
curl -L -o Dockerfile.dev https://huggingface.co/spaces/fr-gouv-coordination-ia/llm_leaderboard_fr/resolve/e2dd0d8a818d68859b4ee84baaa27175b111dafa/backend/Dockerfile.dev
707 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install required system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install poetry | |
| RUN pip install poetry | |
| # Install PyTorch | |
| RUN pip install torch | |
| # Copy Poetry configuration files | |
| COPY pyproject.toml poetry.lock* ./ | |
| # Install dependencies | |
| RUN poetry config virtualenvs.create false && \ | |
| poetry install --no-interaction --no-ansi --no-root | |
| # Environment variables configuration for logs | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV LOG_LEVEL=INFO | |
| # In dev, mount volume directly | |
| CMD ["uvicorn", "app.asgi:app", "--host", "0.0.0.0", "--port", "7860", "--reload", "--log-level", "warning", "--no-access-log"] |