Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -28,6 +28,10 @@ COPY .streamlit/ .streamlit/
|
|
28 |
# 1) Create the cache dir
|
29 |
RUN mkdir -p /app/.streamlit/cache \
|
30 |
&& chmod -R a+rwx /app/.streamlit
|
|
|
|
|
|
|
|
|
31 |
|
32 |
# 2) Tell Streamlit where to put its cache
|
33 |
ENV XDG_CACHE_HOME=/app/.streamlit
|
|
|
28 |
# 1) Create the cache dir
|
29 |
RUN mkdir -p /app/.streamlit/cache \
|
30 |
&& chmod -R a+rwx /app/.streamlit
|
31 |
+
|
32 |
+
# Create writable cache directories
|
33 |
+
RUN mkdir -p /app/.cache/huggingface/hub && \
|
34 |
+
chmod -R 777 /app/.cache
|
35 |
|
36 |
# 2) Tell Streamlit where to put its cache
|
37 |
ENV XDG_CACHE_HOME=/app/.streamlit
|