mercybabs commited on
Commit
48422f2
·
1 Parent(s): 9c5ec2c

update dockerfile with the right port

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -19,5 +19,7 @@ RUN pip install --no-cache-dir -r requirements.txt
19
  # Expose the port Streamlit runs on
20
  EXPOSE 8501
21
 
 
 
22
  # Set the default command to run the app
23
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
19
  # Expose the port Streamlit runs on
20
  EXPOSE 8501
21
 
22
+ # # Set the default command to run the app
23
+ # CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
24
  # Set the default command to run the app
25
+ CMD ["streamlit", "run", "app.py", "--server.port=${PORT:-8501}", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]