Luigi commited on
Commit
78a2b5a
·
verified ·
1 Parent(s): 59ea28f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -9
Dockerfile CHANGED
@@ -26,15 +26,17 @@ RUN mkdir -p /tmp/.streamlit /tmp/huggingface && \
26
 
27
  # Create config file with proper settings
28
  RUN mkdir -p /tmp/.streamlit && \
29
- echo $'[global]\n\
30
- dataSavePath = "/tmp"\n\
31
- \n\
32
- [browser]\n\
33
- gatherUsageStats = false\n\
34
- \n\
35
- [server]\n\
36
- enableCORS = false\n\
37
- enableXsrfProtection = false' > /tmp/.streamlit/config.toml
 
 
38
 
39
  # Copy files
40
  COPY requirements.txt ./
 
26
 
27
  # Create config file with proper settings
28
  RUN mkdir -p /tmp/.streamlit && \
29
+ cat <<EOF > /tmp/.streamlit/config.toml
30
+ [global]
31
+ dataSavePath = "/tmp"
32
+
33
+ [browser]
34
+ gatherUsageStats = false
35
+
36
+ [server]
37
+ enableCORS = false
38
+ enableXsrfProtection = false
39
+ EOF
40
 
41
  # Copy files
42
  COPY requirements.txt ./