Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -7,6 +7,9 @@ WORKDIR /app
|
|
| 7 |
# Set the cache directory for Hugging Face to a writable location
|
| 8 |
ENV HF_HOME /app/.cache/huggingface
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# Copy the requirements file into the container
|
| 11 |
COPY requirements.txt .
|
| 12 |
|
|
|
|
| 7 |
# Set the cache directory for Hugging Face to a writable location
|
| 8 |
ENV HF_HOME /app/.cache/huggingface
|
| 9 |
|
| 10 |
+
# Create the cache directory and set permissions
|
| 11 |
+
RUN mkdir -p /app/.cache && chmod 777 /app/.cache
|
| 12 |
+
|
| 13 |
# Copy the requirements file into the container
|
| 14 |
COPY requirements.txt .
|
| 15 |
|