Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -14,6 +14,10 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
COPY requirements.txt ./
|
15 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
16 |
|
|
|
|
|
|
|
|
|
17 |
# Copy app and support folders
|
18 |
COPY app.py ./
|
19 |
COPY utils/ ./utils/
|
|
|
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 |
# Copy app and support folders
|
22 |
COPY app.py ./
|
23 |
COPY utils/ ./utils/
|