Resolved the Streamlit issue
Browse files- Dockerfile +10 -1
Dockerfile
CHANGED
|
@@ -7,8 +7,17 @@ COPY . .
|
|
| 7 |
RUN pip install --upgrade pip
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
|
|
|
| 10 |
ENV XDG_CONFIG_HOME=/app/.config
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
EXPOSE 8000 8501
|
| 14 |
|
|
|
|
| 7 |
RUN pip install --upgrade pip
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
+
# Fix Streamlit config and fallback locations
|
| 11 |
ENV XDG_CONFIG_HOME=/app/.config
|
| 12 |
+
ENV HOME=/app
|
| 13 |
+
ENV STREAMLIT_HOME=/app
|
| 14 |
+
|
| 15 |
+
RUN mkdir -p /app/.config \
|
| 16 |
+
&& mkdir -p /app/.streamlit \
|
| 17 |
+
&& chmod -R 777 /app/.config /app/.streamlit
|
| 18 |
+
|
| 19 |
+
# Optional: turn off telemetry
|
| 20 |
+
RUN echo "[browser]\ngatherUsageStats = false" > /app/.streamlit/config.toml
|
| 21 |
|
| 22 |
EXPOSE 8000 8501
|
| 23 |
|