Add command line arguments such as `--server.enableXsrfProtection false` that are necessary or suitable for HF Spaces
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -20,4 +20,8 @@ WORKDIR $HOME/app
|
|
20 |
COPY . $HOME/app
|
21 |
|
22 |
EXPOSE 8501
|
23 |
-
CMD streamlit run app.py
|
|
|
|
|
|
|
|
|
|
20 |
COPY . $HOME/app
|
21 |
|
22 |
EXPOSE 8501
|
23 |
+
CMD streamlit run app.py \
|
24 |
+
--server.headless true \
|
25 |
+
--server.enableCORS false \
|
26 |
+
--server.enableXsrfProtection false \
|
27 |
+
--server.fileWatcherType none
|