We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3264b3 commit 0f71638Copy full SHA for 0f71638
1 file changed
23.3.0/Dockerfile
@@ -23,10 +23,15 @@ ARG DIR=/home/elements
23
COPY --from=builder "/tmp/bin" /usr/local/bin
24
25
# NOTE: Default GID == UID == 1000
26
-RUN adduser --disabled-password \
27
- --home "$DIR/" \
28
- --gecos "" \
29
- "$USER"
+RUN useradd -M \
+ -d "$DIR/" \
+ -s /usr/sbin/nologin \
+ -u 1000 \
30
+ -U \
31
+ -c "" \
32
+ "$USER" && \
33
+ mkdir -p "$DIR" && \
34
+ chown -R "$USER:$USER" "$DIR/"
35
36
USER $USER
37
0 commit comments