Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -8,6 +8,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 8 |
|
| 9 |
WORKDIR /app
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt \
|
| 13 |
&& pip install torch --index-url https://download.pytorch.org/whl/cpu \
|
|
|
|
| 8 |
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
+
# Create cache directory with proper permissions
|
| 12 |
+
RUN mkdir -p /.cache && chmod 777 /.cache
|
| 13 |
+
|
| 14 |
COPY requirements.txt .
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt \
|
| 16 |
&& pip install torch --index-url https://download.pytorch.org/whl/cpu \
|