Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
| 22 |
-
#
|
| 23 |
-
RUN sed -i 's/
|
|
|
|
|
|
|
| 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 |
|