File size: 710 Bytes
47cf216
 
 
0271343
47cf216
 
f748ff6
5ddbc46
0271343
 
47cf216
 
0271343
47cf216
 
 
0271343
47cf216
 
 
 
 
0271343
47cf216
 
f748ff6
64d0031
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 1. Image Python stable
FROM python:3.10

# 2. Dossier de travail
WORKDIR /code

# Installation des lib graphiques
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0

# 3. Copie des requirements
COPY ./backend/requirements.txt /code/requirements.txt

# 4. Installation des dépendances Python
RUN pip install --no-cache-dir --upgrade pip && \
    pip install --no-cache-dir -r /code/requirements.txt

# 5. Création du dossier pour les poids DeepFace
RUN mkdir -p /root/.deepface/weights

# 6. Copie du code backend
COPY ./backend /code

# 7. Ouverture du port
EXPOSE 7860

# 8. Lancement (CORRECTION ICI : main:socket_app)
CMD ["uvicorn", "server:socket_app", "--host", "0.0.0.0", "--port", "7860"]