rachman commited on
Commit
2cd780f
·
verified ·
1 Parent(s): 31b1c5c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -9
Dockerfile CHANGED
@@ -14,14 +14,11 @@ COPY src/ ./src/
14
 
15
  RUN pip3 install -r requirements.txt
16
 
17
- # # Create config directories and set environment variables
18
- # RUN mkdir -p /app/.streamlit /app/.matplotlib && \
19
- # chmod -R 777 /app/.streamlit /app/.matplotlib
20
-
21
- # ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
22
- # ENV MPLCONFIGDIR=/app/.matplotlib
23
- # EXPOSE 8501
24
-
25
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
26
 
27
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0","--server.enableXsrfProtection=false"]
 
 
 
 
 
 
14
 
15
  RUN pip3 install -r requirements.txt
16
 
 
 
 
 
 
 
 
 
17
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
18
 
19
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", \
20
+ "--server.port=8501", \
21
+ "--server.address=0.0.0.0", \
22
+ "--server.fileWatcherType=none", \
23
+ "--server.enableCORS=false", \
24
+ "--server.enableXsrfProtection=false"]