Spaces:
Sleeping
Sleeping
Commit ·
be50aa8
1
Parent(s): 20efc7b
Ensure cache is writtable
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -19,8 +19,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 19 |
COPY requirements.txt .
|
| 20 |
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
| 21 |
|
| 22 |
-
# Create writable model cache directory
|
| 23 |
-
RUN mkdir -p /app/model_cache /app/.cache/huggingface
|
|
|
|
| 24 |
|
| 25 |
# Copy app source code
|
| 26 |
COPY . .
|
|
|
|
| 19 |
COPY requirements.txt .
|
| 20 |
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
| 21 |
|
| 22 |
+
# Create writable model cache directory and set correct ownership
|
| 23 |
+
RUN mkdir -p /app/model_cache /app/.cache/huggingface && \
|
| 24 |
+
chown -R 1000:1000 /app/model_cache /app/.cache/huggingface
|
| 25 |
|
| 26 |
# Copy app source code
|
| 27 |
COPY . .
|