AreejMehboob commited on
Commit
cf3d1c9
Β·
verified Β·
1 Parent(s): b5a8406

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -14,14 +14,16 @@ COPY src/ ./src/
14
 
15
  RUN pip3 install -r requirements.txt
16
 
17
- # βœ… Create a writable .streamlit config directory
18
  RUN mkdir -p /app/.streamlit
19
-
20
- # βœ… Set environment variable to use the new config directory
21
  ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
22
 
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"]
 
14
 
15
  RUN pip3 install -r requirements.txt
16
 
17
+ # βœ… Fix permission issue
18
  RUN mkdir -p /app/.streamlit
 
 
19
  ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
20
 
21
  EXPOSE 8501
22
 
23
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
24
 
25
+ # πŸ›  TEMPORARY DEBUG: print env var
26
+ # ENTRYPOINT ["/bin/sh", "-c", "echo STREAMLIT_CONFIG_DIR=$STREAMLIT_CONFIG_DIR && streamlit run src/streamlit_app.py --server.port=8501 --server.address=0.0.0.0"]
27
+
28
+ # βœ… Final Entry
29
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]