HacksterT commited on
Commit
2afa578
·
verified ·
1 Parent(s): 7912d7e

Force update Dockerfile - 1754762737

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -6,4 +6,10 @@ COPY . .
6
 
7
  RUN pip3 install -r requirements.txt
8
 
 
 
 
 
 
 
9
  CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
 
6
 
7
  RUN pip3 install -r requirements.txt
8
 
9
+ # Create .streamlit directory and config to fix permissions
10
+ RUN mkdir -p /app/.streamlit
11
+ ENV STREAMLIT_SERVER_HEADLESS=true
12
+ ENV STREAMLIT_SERVER_ENABLE_CORS=false
13
+ ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
14
+
15
  CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]