Spaces:
Paused
Paused
Download src/Dockerfile.train from Demosthene-OR/rakuten: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/Demosthene-OR/rakuten/resolve/main/src/Dockerfile.train
- Command line
-
hf download hf://spaces/Demosthene-OR/rakuten/src/Dockerfile.train
-
curl -L -o Dockerfile.train https://huggingface.co/spaces/Demosthene-OR/rakuten/resolve/main/src/Dockerfile.train
416 Bytes
| FROM python:3.10.14-slim | |
| # Installation de curl | |
| RUN apt-get update && apt-get install -y curl | |
| RUN mkdir -p /app/src | |
| WORKDIR /app/src | |
| # Copie du fichier requirements.txt séparément pour éviter de recopier tout le contenu si les dépendances n'ont pas changé | |
| COPY . . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| WORKDIR /app | |
| CMD ["uvicorn", "src.main_API:app", "--host", "0.0.0.0", "--port", "8002"] | |