NathMen12 commited on
Commit
94c563a
·
verified ·
1 Parent(s): f6ff204

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -18,9 +18,11 @@ RUN git clone https://github.com/hydropix/TranslateBooksWithLLMs.git .
18
  RUN pip install --no-cache-dir --upgrade pip && \
19
  pip install --no-cache-dir -r requirements.txt
20
 
21
- # CORRECTION AUTOMATIQUE : Remplace le port 5000 par 7860 dans start.sh
22
- # (Adaptez '5000' et '7860' si le port s'écrit différemment, ex: --port=5000 ou :5000)
23
- RUN sed -i 's/5000/7860/g' start.sh
 
 
24
 
25
  RUN chmod +x start.sh
26
 
 
18
  RUN pip install --no-cache-dir --upgrade pip && \
19
  pip install --no-cache-dir -r requirements.txt
20
 
21
+ # REMPLACEMENT CRUCIAL : Force l'écoute sur 0.0.0.0 au lieu de 127.0.0.1 (ou localhost)
22
+ # et s'assure que le port est bien 7860
23
+ RUN find . -type f \( -name "*.py" -o -name "*.sh" \) -exec sed -i 's/127.0.0.1/0.0.0.0/g' {} + && \
24
+ sed -i 's/localhost/0.0.0.0/g' start.sh && \
25
+ sed -i 's/5000/7860/g' start.sh
26
 
27
  RUN chmod +x start.sh
28