MODLI commited on
Commit
073c2f6
·
verified ·
1 Parent(s): 0cbdad1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -8
Dockerfile CHANGED
@@ -2,23 +2,16 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Installer les dépendances système minimales
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  curl \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # Copier les requirements d'abord
11
  COPY requirements.txt .
12
 
13
- # Installer pip à une version compatible et les dépendances
14
- RUN pip install --upgrade "pip<24.0" && \
15
- pip install --no-cache-dir -r requirements.txt
16
 
17
- # Copier le code de l'application
18
  COPY . .
19
 
20
- # Exposer le port
21
  EXPOSE 7860
22
 
23
- # Commande de démarrage
24
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  curl \
7
  && rm -rf /var/lib/apt/lists/*
8
 
 
9
  COPY requirements.txt .
10
 
11
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
12
 
 
13
  COPY . .
14
 
 
15
  EXPOSE 7860
16
 
 
17
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]