Spaces:
Sleeping
Sleeping
Download Dockerfile from untitled1176/BootServer: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/untitled1176/BootServer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/untitled1176/BootServer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/untitled1176/BootServer/resolve/main/Dockerfile
492 Bytes
| # Utilise Python | |
| FROM python:3.9 | |
| # Crée un utilisateur pour la sécurité (HF l'exige souvent) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| # Copie et installe les dépendances | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copie tout ton code | |
| COPY --chown=user . /app | |
| # LANCE FLASK AVEC GUNICORN (Sur le port 7860 !) | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |