Spaces:
Runtime error
Runtime error
update dockerfile with the right port
Browse files- 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
|
|
|
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"]
|