akryldigital commited on
Commit
973ca8b
·
verified ·
1 Parent(s): ef0146a

soften permissions for folder creations

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -37,10 +37,14 @@ COPY . .
37
  RUN mkdir -p /app/.streamlit && \
38
  mkdir -p /app/.cache/streamlit && \
39
  mkdir -p /app/.cache/huggingface && \
 
 
40
  printf '[server]\nport = 8501\nheadless = true\nenableCORS = false\nenableXsrfProtection = false\n\n[browser]\ngatherUsageStats = false\n' > /app/.streamlit/config.toml && \
41
- chmod -R 755 /app/.streamlit && \
42
- chmod -R 755 /app/.cache/streamlit && \
43
- chmod -R 755 /app/.cache/huggingface
 
 
44
 
45
 
46
  ENV STREAMLIT_CONFIG_HOME=/app/.streamlit
@@ -55,8 +59,8 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
55
  CMD curl --fail http://localhost:8501/_stcore/health || exit 1
56
 
57
  #temp developement commands
58
- RUN mkdir conversations && chmod -R 755 conversations
59
- RUN mkdir feedback && chmod -R 755 feedback
60
 
61
  # Run Streamlit app
62
  ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.headless", "true"]
 
37
  RUN mkdir -p /app/.streamlit && \
38
  mkdir -p /app/.cache/streamlit && \
39
  mkdir -p /app/.cache/huggingface && \
40
+ mkdir -p /app/conversations && \
41
+ mkdir -p /app/feedback && \
42
  printf '[server]\nport = 8501\nheadless = true\nenableCORS = false\nenableXsrfProtection = false\n\n[browser]\ngatherUsageStats = false\n' > /app/.streamlit/config.toml && \
43
+ chmod -R 777 /app/.streamlit && \
44
+ chmod -R 777 /app/.cache/streamlit && \
45
+ chmod -R 777 /app/.cache/huggingface && \
46
+ chmod -R 777 /app/conversations && \
47
+ chmod -R 777 /app/feedback
48
 
49
 
50
  ENV STREAMLIT_CONFIG_HOME=/app/.streamlit
 
59
  CMD curl --fail http://localhost:8501/_stcore/health || exit 1
60
 
61
  #temp developement commands
62
+ # RUN mkdir /app/conversations && chmod -R 777 conversations
63
+ # RUN mkdir /app/feedback && chmod -R 777 feedback
64
 
65
  # Run Streamlit app
66
  ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.headless", "true"]