Spaces:
Sleeping
Sleeping
Download Dockerfile from Ba7ath-Project/OSINT-suite: direct link, hf CLI and curl.
- Browser
- Download file 969 Bytes
-
https://huggingface.co/spaces/Ba7ath-Project/OSINT-suite/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ba7ath-Project/OSINT-suite/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ba7ath-Project/OSINT-suite/resolve/main/Dockerfile
969 Bytes
| FROM python:3.11-slim | |
| # Mettre à jour les paquets système et installer les dépendances pour la compilation C++ (face_recognition / dlib) | |
| RUN apt-get update && apt-get install -y \ | |
| cmake \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| build-essential \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Créer un utilisateur non root (Recommandé par Hugging Face pour des raisons de sécurité) | |
| RUN useradd -m -u 1000 user | |
| # Définir le répertoire de travail | |
| WORKDIR /app | |
| # Copier et installer les dépendances Python | |
| COPY --chown=user:user requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip | |
| ENV MAX_JOBS=4 | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copier tout le reste du projet | |
| COPY --chown=user:user . . | |
| # Basculer sur le nouvel utilisateur | |
| USER user | |
| # Exposer le port par défaut de Hugging Face | |
| EXPOSE 7860 | |
| # Démarrer Streamlit sur le port 7860 | |
| CMD ["streamlit", "run", "dashboard.py", "--server.port=7860", "--server.address=0.0.0.0"] | |