Spaces:
Runtime error
Runtime error
Commit
·
8ef984e
1
Parent(s):
4269801
update access
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -20,6 +20,7 @@ ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
|
20 |
|
21 |
ENV TORCH_HOME /home/user/.cache/torch
|
22 |
RUN mkdir -p /home/user/.cache/torch && chmod -R u+rwx /home/user/.cache/torch
|
|
|
23 |
RUN mkdir -p /home/user/.cache/huggingface/datasets && chmod -R u+rwx /home/user/.cache/huggingface/datasets
|
24 |
|
25 |
RUN apt-get update
|
@@ -54,6 +55,9 @@ USER user
|
|
54 |
ENV HOME=/home/user \
|
55 |
PATH=/home/user/.local/bin:$PATH
|
56 |
|
|
|
|
|
|
|
57 |
# Set the working directory to the user's home directory
|
58 |
WORKDIR $HOME/app
|
59 |
|
|
|
20 |
|
21 |
ENV TORCH_HOME /home/user/.cache/torch
|
22 |
RUN mkdir -p /home/user/.cache/torch && chmod -R u+rwx /home/user/.cache/torch
|
23 |
+
RUN mkdir -p /home/user/.cache/torch && chmod -R u+rwx /home/user/.cache/torch
|
24 |
RUN mkdir -p /home/user/.cache/huggingface/datasets && chmod -R u+rwx /home/user/.cache/huggingface/datasets
|
25 |
|
26 |
RUN apt-get update
|
|
|
55 |
ENV HOME=/home/user \
|
56 |
PATH=/home/user/.local/bin:$PATH
|
57 |
|
58 |
+
RUN mkdir -p /home/user/.cache/torch && \
|
59 |
+
chown -R user:user /home/user/.cache
|
60 |
+
|
61 |
# Set the working directory to the user's home directory
|
62 |
WORKDIR $HOME/app
|
63 |
|