Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -15,6 +15,11 @@ COPY . .
|
|
15 |
RUN pip install --no-cache-dir -U pip wheel setuptools \
|
16 |
&& pip install --no-cache-dir -r requirements.txt
|
17 |
|
|
|
|
|
|
|
|
|
|
|
18 |
# Expose FastAPI port
|
19 |
EXPOSE 7860
|
20 |
|
|
|
15 |
RUN pip install --no-cache-dir -U pip wheel setuptools \
|
16 |
&& pip install --no-cache-dir -r requirements.txt
|
17 |
|
18 |
+
# Configure Hugging Face cache to a writable location
|
19 |
+
ENV HF_HOME=/code/.cache \
|
20 |
+
HUGGINGFACE_HUB_CACHE=/code/.cache/huggingface
|
21 |
+
RUN mkdir -p /code/.cache/huggingface
|
22 |
+
|
23 |
# Expose FastAPI port
|
24 |
EXPOSE 7860
|
25 |
|