Levin-Aleksey commited on
Commit
0719887
·
1 Parent(s): 19e61d7

fix: explicit port 8501 config in Dockerfile for websocket compatibility

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -4,7 +4,5 @@ COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
5
  COPY . .
6
  RUN chmod -R 777 /app
7
- # Hugging Face Spaces ВСЕГДА слушает порт 7860
8
- EXPOSE 7860
9
- # Эта команда — ключ к успеху. Без этих флагов будет "вечная загрузка"
10
- CMD ["streamlit", "run", "app.py"]
 
4
  RUN pip install --no-cache-dir -r requirements.txt
5
  COPY . .
6
  RUN chmod -R 777 /app
7
+ EXPOSE 8501
8
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]