change streamlit configurations
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
|
@@ -24,6 +24,14 @@ RUN python download_models.py
|
|
| 24 |
# Copy all application files (excluding .dockerignore patterns)
|
| 25 |
COPY . .
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
# Expose Streamlit port (HF Spaces maps to 7860 automatically)
|
| 28 |
EXPOSE 8501
|
| 29 |
|
|
|
|
| 24 |
# Copy all application files (excluding .dockerignore patterns)
|
| 25 |
COPY . .
|
| 26 |
|
| 27 |
+
RUN chmod -R 755 /app/.streamlit && \
|
| 28 |
+
mkdir -p /app/.cache/streamlit && \
|
| 29 |
+
chmod -R 755 /app/.cache/streamlit
|
| 30 |
+
|
| 31 |
+
ENV STREAMLIT_CONFIG_HOME=/app/.streamlit
|
| 32 |
+
ENV STREAMLIT_USER_BASE_PATH=/app/.cache/streamlit
|
| 33 |
+
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
|
| 34 |
+
|
| 35 |
# Expose Streamlit port (HF Spaces maps to 7860 automatically)
|
| 36 |
EXPOSE 8501
|
| 37 |
|