Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
@@ -14,10 +14,6 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
COPY requirements.txt ./
|
15 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
-
# 2) Set environment so Streamlit & HF cache use these dirs
|
18 |
-
ENV HOME=/app
|
19 |
-
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub
|
20 |
-
|
21 |
|
22 |
# Copy app and support folders
|
23 |
COPY app.py ./
|
@@ -35,7 +31,7 @@ RUN mkdir -p /app/.cache/huggingface/hub && \
|
|
35 |
|
36 |
# 2) Tell Streamlit where to put its cache
|
37 |
ENV XDG_CACHE_HOME=/app/.streamlit
|
38 |
-
|
39 |
EXPOSE 8501
|
40 |
|
41 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
|
|
14 |
COPY requirements.txt ./
|
15 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
16 |
|
|
|
|
|
|
|
|
|
17 |
|
18 |
# Copy app and support folders
|
19 |
COPY app.py ./
|
|
|
31 |
|
32 |
# 2) Tell Streamlit where to put its cache
|
33 |
ENV XDG_CACHE_HOME=/app/.streamlit
|
34 |
+
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub
|
35 |
EXPOSE 8501
|
36 |
|
37 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|