Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
| 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 ./
|