Spaces:
Sleeping
Sleeping
Commit ·
a91a11e
1
Parent(s): b3bc340
index folder changes
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
|
@@ -15,6 +15,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 15 |
# copy app files
|
| 16 |
COPY . .
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# upgrade pip and install Python deps
|
| 19 |
RUN python -m pip install --upgrade pip setuptools wheel
|
| 20 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 15 |
# copy app files
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
+
# --- Fix: create writable dirs and set permissions ---
|
| 19 |
+
RUN mkdir -p /app/indexes /tmp/.streamlit \
|
| 20 |
+
&& chmod -R 777 /app/indexes /tmp/.streamlit
|
| 21 |
+
|
| 22 |
+
# point Streamlit config to writable folder
|
| 23 |
+
ENV STREAMLIT_HOME=/tmp/.streamlit
|
| 24 |
+
ENV PYTHONUNBUFFERED=1
|
| 25 |
+
|
| 26 |
# upgrade pip and install Python deps
|
| 27 |
RUN python -m pip install --upgrade pip setuptools wheel
|
| 28 |
RUN pip install --no-cache-dir -r requirements.txt
|