Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +1 -6
Dockerfile
CHANGED
@@ -9,18 +9,13 @@ ARG INSTALL_CHANNEL=pytorch
|
|
9 |
# Automatically set by buildx
|
10 |
ARG TARGETPLATFORM
|
11 |
|
|
|
12 |
|
13 |
#ENV HOME=/home/user \
|
14 |
# PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
|
15 |
|
16 |
ENV PATH=/opt/conda/bin:$PATH
|
17 |
|
18 |
-
RUN mkdir -p .cache
|
19 |
-
#RUN mkdir -p data
|
20 |
-
# I'm not sure how to allow later python files used here to write to .cache without making it world-writeable.
|
21 |
-
RUN chmod 777 -R .cache
|
22 |
-
#RUN chmod 777 -R data
|
23 |
-
|
24 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
25 |
build-essential \
|
26 |
ca-certificates \
|
|
|
9 |
# Automatically set by buildx
|
10 |
ARG TARGETPLATFORM
|
11 |
|
12 |
+
RUN useradd -m -u 1000 user
|
13 |
|
14 |
#ENV HOME=/home/user \
|
15 |
# PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
|
16 |
|
17 |
ENV PATH=/opt/conda/bin:$PATH
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
20 |
build-essential \
|
21 |
ca-certificates \
|