Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -7,10 +7,11 @@ WORKDIR /code
|
|
7 |
# Set environment variables for writable directories
|
8 |
ENV MPLCONFIGDIR=/tmp/matplotlib_cache
|
9 |
ENV XDG_CACHE_HOME=/tmp/cache
|
|
|
10 |
|
11 |
# Create necessary directories and set permissions
|
12 |
-
RUN mkdir -p /.cache/gdown /code/pretrained_models \
|
13 |
-
&& chmod -R 777 /.cache /code/pretrained_models
|
14 |
|
15 |
# Install libGL for OpenCV
|
16 |
RUN apt-get update && apt-get install -y \
|
|
|
7 |
# Set environment variables for writable directories
|
8 |
ENV MPLCONFIGDIR=/tmp/matplotlib_cache
|
9 |
ENV XDG_CACHE_HOME=/tmp/cache
|
10 |
+
ENV TORCH_HOME=/tmp/cache/torch
|
11 |
|
12 |
# Create necessary directories and set permissions
|
13 |
+
RUN mkdir -p /.cache/gdown /code/pretrained_models /tmp/cache/torch \
|
14 |
+
&& chmod -R 777 /.cache /code/pretrained_models /tmp/cache
|
15 |
|
16 |
# Install libGL for OpenCV
|
17 |
RUN apt-get update && apt-get install -y \
|