Update Dockerfile
Browse files- Dockerfile +10 -4
Dockerfile
CHANGED
@@ -2,6 +2,14 @@ FROM python:3.9-slim
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
build-essential \
|
7 |
ffmpeg \
|
@@ -25,13 +33,11 @@ COPY .streamlit/ .streamlit/
|
|
25 |
RUN mkdir -p /app/.streamlit/cache \
|
26 |
&& chmod -R a+rwx /app/.streamlit
|
27 |
|
28 |
-
# Create writable cache directories
|
29 |
-
RUN mkdir -p /app/.cache/huggingface/hub && \
|
30 |
-
chmod -R 777 /app/.cache
|
31 |
|
32 |
# 2) Tell Streamlit where to put its cache
|
33 |
ENV XDG_CACHE_HOME=/app/.streamlit
|
34 |
-
|
|
|
35 |
|
36 |
EXPOSE 8501
|
37 |
|
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
# Create writable cache directories
|
6 |
+
RUN mkdir -p /app/.cache/huggingface/hub && \
|
7 |
+
chmod -R 777 /app/.cache
|
8 |
+
|
9 |
+
# Create writable cache directory for Hugging Face
|
10 |
+
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub
|
11 |
+
|
12 |
+
|
13 |
RUN apt-get update && apt-get install -y \
|
14 |
build-essential \
|
15 |
ffmpeg \
|
|
|
33 |
RUN mkdir -p /app/.streamlit/cache \
|
34 |
&& chmod -R a+rwx /app/.streamlit
|
35 |
|
|
|
|
|
|
|
36 |
|
37 |
# 2) Tell Streamlit where to put its cache
|
38 |
ENV XDG_CACHE_HOME=/app/.streamlit
|
39 |
+
|
40 |
+
|
41 |
|
42 |
EXPOSE 8501
|
43 |
|