Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -23,4 +23,9 @@ EXPOSE 7860
|
|
| 23 |
|
| 24 |
# 7. Run the app
|
| 25 |
# Using 7860 as the port makes it compatible with Hugging Face Spaces
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# 7. Run the app
|
| 25 |
# Using 7860 as the port makes it compatible with Hugging Face Spaces
|
| 26 |
+
# Start the app with security flags to prevent the 403 AxiosError
|
| 27 |
+
CMD ["streamlit", "run", "app.py", \
|
| 28 |
+
"--server.port", "7860", \
|
| 29 |
+
"--server.address", "0.0.0.0", \
|
| 30 |
+
"--server.enableCORS", "false", \
|
| 31 |
+
"--server.enableXsrfProtection", "false"]
|