File size: 416 Bytes
eb5ec73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.10.14-slim

# Installation de curl
RUN apt-get update && apt-get install -y curl

RUN mkdir -p /app/src
WORKDIR /app/src

# Copie du fichier requirements.txt séparément pour éviter de recopier tout le contenu si les dépendances n'ont pas changé
COPY . .

RUN pip install --no-cache-dir -r requirements.txt

WORKDIR /app

CMD ["uvicorn", "src.main_API:app", "--host", "0.0.0.0", "--port", "8002"]