Spaces:
Sleeping
Sleeping
update dokerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -8,9 +8,9 @@ COPY app/requirements.txt ./backend-requirements.txt
|
|
8 |
COPY fe/requirements.txt ./frontend-requirements.txt
|
9 |
RUN pip install --no-cache-dir -r backend-requirements.txt -r frontend-requirements.txt
|
10 |
|
11 |
-
# Set
|
12 |
-
ENV HF_HOME=/
|
13 |
-
|
14 |
|
15 |
# Set PYTHONPATH to ensure all modules are discoverable
|
16 |
ENV PYTHONPATH=/usr/src/app
|
|
|
8 |
COPY fe/requirements.txt ./frontend-requirements.txt
|
9 |
RUN pip install --no-cache-dir -r backend-requirements.txt -r frontend-requirements.txt
|
10 |
|
11 |
+
# Set cache directories to /tmp
|
12 |
+
ENV HF_HOME=/tmp/huggingface
|
13 |
+
ENV TRANSFORMERS_CACHE=/tmp/huggingface
|
14 |
|
15 |
# Set PYTHONPATH to ensure all modules are discoverable
|
16 |
ENV PYTHONPATH=/usr/src/app
|