rachman commited on
Commit
bfda7d6
·
verified ·
1 Parent(s): 467d364

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -14,6 +14,11 @@ COPY src/ ./src/
14
 
15
  RUN pip3 install -r requirements.txt
16
 
 
 
 
 
 
17
  EXPOSE 8501
18
 
19
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
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 /app/.ultralytics && \
19
+ echo "[general]\ntelemetryEnabled = false\n[server]\nfileWatcherType = \"none\"" > /app/.streamlit/config.toml && \
20
+ chmod -R 777 /app/.streamlit /app/.matplotlib /app/.ultralytics
21
+
22
  EXPOSE 8501
23
 
24
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health