Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -31,13 +31,13 @@ RUN chmod -R 777 /app
|
|
| 31 |
|
| 32 |
# 6. CONFIGURATION
|
| 33 |
# Force Streamlit to use the correct port
|
| 34 |
-
ENV STREAMLIT_SERVER_PORT=
|
| 35 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 36 |
ENV STREAMLIT_SERVER_FILE_WATCHER_TYPE=none
|
| 37 |
|
| 38 |
# Expose the port
|
| 39 |
-
EXPOSE
|
| 40 |
|
| 41 |
# 7. Start the App
|
| 42 |
# CRITICAL FIX: We tell Streamlit to run the file inside the 'src' folder
|
| 43 |
-
ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=
|
|
|
|
| 31 |
|
| 32 |
# 6. CONFIGURATION
|
| 33 |
# Force Streamlit to use the correct port
|
| 34 |
+
ENV STREAMLIT_SERVER_PORT=7860
|
| 35 |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
| 36 |
ENV STREAMLIT_SERVER_FILE_WATCHER_TYPE=none
|
| 37 |
|
| 38 |
# Expose the port
|
| 39 |
+
EXPOSE 7860
|
| 40 |
|
| 41 |
# 7. Start the App
|
| 42 |
# CRITICAL FIX: We tell Streamlit to run the file inside the 'src' folder
|
| 43 |
+
ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
|