Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
-
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
WORKDIR /app
|
5 |
COPY . /app
|
6 |
|
|
|
|
|
|
|
|
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
EXPOSE 7860
|
|
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
WORKDIR /app
|
4 |
COPY . /app
|
5 |
|
6 |
+
# Set environment variables early so HF uses /tmp/hf_cache
|
7 |
+
ENV HF_HOME=/tmp/hf_cache
|
8 |
+
ENV TRANSFORMERS_CACHE=/tmp/hf_cache
|
9 |
+
|
10 |
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
|
12 |
EXPOSE 7860
|