meg HF staff commited on
Commit
80c4ae1
·
verified ·
1 Parent(s): 80b325c

More playing with 'user' variable and permissions.

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -12,11 +12,6 @@ ARG TARGETPLATFORM
12
  RUN useradd -m -u 1000 user
13
  WORKDIR /app
14
 
15
- USER user
16
-
17
- ENV HOME=/home/user \
18
- PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
19
-
20
  RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
21
  build-essential \
22
  ca-certificates \
@@ -63,4 +58,9 @@ RUN --mount=type=secret,id=DEBUG,mode=0444,required=true \
63
  git init && \
64
  git remote add origin $(cat /run/secrets/DEBUG)
65
 
 
 
 
 
 
66
  ENTRYPOINT ["/entrypoint.sh"]
 
12
  RUN useradd -m -u 1000 user
13
  WORKDIR /app
14
 
 
 
 
 
 
15
  RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
16
  build-essential \
17
  ca-certificates \
 
58
  git init && \
59
  git remote add origin $(cat /run/secrets/DEBUG)
60
 
61
+ USER user
62
+
63
+ ENV HOME=/home/user \
64
+ PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
65
+
66
  ENTRYPOINT ["/entrypoint.sh"]