Vdphacker/Cyber_IA
0
1FROM python:3.11-slim
2
3# --- Dépendances système ---
4RUN apt-get update && apt-get install -y \
5 curl \
6 wget \
7 gnupg \
8 libnss3 \
9 libxss1 \
10 libatk1.0-0 \
11 libatk-bridge2.0-0 \
12 libcups2 \
13 libdrm2 \
14 libxkbcommon0 \
15 libxcomposite1 \
16 libxdamage1 \
17 libxrandr2 \
18 libgbm1 \
19 libasound2 \
20 xvfb \
21 && rm -rf /var/lib/apt/lists/*
22
23# --- Installer Ollama + Phi-3 ---
24RUN curl -fsSL https://ollama.com/install.sh | sh
25RUN ollama pull phi3
26
27# --- Python ---
28COPY requirements.txt .
29RUN pip install --no-cache-dir -r requirements.txt
30
31# --- App ---
32COPY . /app
33WORKDIR /app
34
35# --- Lancer ---
36CMD ["sh", "-c", "ollama serve & sleep 5 && xvfb-run -s '-screen 0 1024x768x24' python app.py"]