Download Dockerfile from Vdphacker/Cyber_IA: direct link, hf CLI and curl.
- Browser
- Download file 773 Bytes
-
https://huggingface.co/spaces/Vdphacker/Cyber_IA/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Vdphacker/Cyber_IA/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Vdphacker/Cyber_IA/resolve/main/Dockerfile
773 Bytes
| FROM python:3.11-slim | |
| # --- Dépendances système --- | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| wget \ | |
| gnupg \ | |
| libnss3 \ | |
| libxss1 \ | |
| libatk1.0-0 \ | |
| libatk-bridge2.0-0 \ | |
| libcups2 \ | |
| libdrm2 \ | |
| libxkbcommon0 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxrandr2 \ | |
| libgbm1 \ | |
| libasound2 \ | |
| xvfb \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # --- Installer Ollama + Phi-3 --- | |
| RUN curl -fsSL https://ollama.com/install.sh | sh | |
| RUN ollama pull phi3 | |
| # --- Python --- | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # --- App --- | |
| COPY . /app | |
| WORKDIR /app | |
| # --- Lancer --- | |
| CMD ["sh", "-c", "ollama serve & sleep 5 && xvfb-run -s '-screen 0 1024x768x24' python app.py"] |