Spaces:
Runtime error
Runtime error
Commit
·
7d2b8e1
1
Parent(s):
e831b35
changes
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -5,6 +5,12 @@ FROM python:3.9-slim
|
|
5 |
ENV PYTHONUNBUFFERED=1 \
|
6 |
PYTHONDONTWRITEBYTECODE=1
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
# Set working directory inside the container
|
9 |
WORKDIR /app
|
10 |
|
|
|
5 |
ENV PYTHONUNBUFFERED=1 \
|
6 |
PYTHONDONTWRITEBYTECODE=1
|
7 |
|
8 |
+
# Set Hugging Face cache directory to a writable location inside the container
|
9 |
+
ENV HF_HOME="/app/huggingface_cache"
|
10 |
+
|
11 |
+
# Ensure the cache directory exists and is writable
|
12 |
+
RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
|
13 |
+
|
14 |
# Set working directory inside the container
|
15 |
WORKDIR /app
|
16 |
|