QuentinL52 commited on
Commit
663f4b1
·
verified ·
1 Parent(s): ef9eba2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -2,12 +2,17 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- COPY ./cv_parser_api/requirements.txt ./requirements.txt
 
6
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- COPY ./cv_parser_api /app
 
10
 
 
11
  EXPOSE 8001
12
 
 
13
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Copie requirements.txt d'abord pour optimiser le cache Docker
6
+ COPY ./requirements.txt .
7
 
8
+ # Installe les dépendances
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # Copie le reste des fichiers du projet
12
+ COPY . .
13
 
14
+ # Expose le port sur lequel l'application s'exécute
15
  EXPOSE 8001
16
 
17
+ # Commande pour démarrer l'application FastAPI
18
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]