renad-108 commited on
Commit
e425c50
·
verified ·
1 Parent(s): 6c7212c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -20,11 +20,12 @@ RUN pip install --no-cache-dir -r requirements.txt
20
  # Copy the application files
21
  COPY . .
22
 
23
- # Expose port for Streamlit
24
- EXPOSE 7860
 
 
 
25
 
26
- # Run Streamlit
27
- CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
28
  # ##################################################################################################
29
  # FROM python:3.9-slim
30
 
 
20
  # Copy the application files
21
  COPY . .
22
 
23
+ # Let Hugging Face choose the port
24
+ EXPOSE $PORT
25
+
26
+ # Run Streamlit using the port provided by Hugging Face
27
+ CMD ["sh", "-c", "streamlit run src/streamlit_app.py --server.port=$PORT --server.address=0.0.0.0"]
28
 
 
 
29
  # ##################################################################################################
30
  # FROM python:3.9-slim
31