maxcasado commited on
Commit
fd12ebe
·
verified ·
1 Parent(s): 5c78f78

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -3,10 +3,9 @@ FROM python:3.11-slim
3
 
4
  WORKDIR /app
5
 
6
- # Désactiver les prompts interactifs
7
  ENV DEBIAN_FRONTEND=noninteractive
8
 
9
- # Quelques deps système (optionnel selon ton modèle/biblio)
10
  RUN apt-get update && apt-get install -y --no-install-recommends \
11
  git \
12
  && rm -rf /var/lib/apt/lists/*
@@ -15,12 +14,11 @@ COPY requirements.txt .
15
 
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Copier le reste du code
19
  COPY . .
20
 
21
- # Hugging Face fournit $PORT, on l'utilise pour Streamlit
22
- ENV PORT=7860
23
 
24
- EXPOSE 7860
25
 
26
  CMD ["bash", "start.sh"]
 
3
 
4
  WORKDIR /app
5
 
 
6
  ENV DEBIAN_FRONTEND=noninteractive
7
 
8
+ # (optionnel) quelques deps système
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
 
14
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
17
  COPY . .
18
 
19
+ # Hugging Face lira app_port: 8501, donc on écoute sur 8501
20
+ ENV PORT=8501
21
 
22
+ EXPOSE 8501
23
 
24
  CMD ["bash", "start.sh"]