Modify build user, use root

This commit is contained in:
Carsten Schmiemann 2024-01-13 01:08:07 +01:00
parent e7bdca5ece
commit efcfd75fdd
1 changed files with 1 additions and 3 deletions

View File

@ -22,8 +22,6 @@ RUN set -ex && \
openssh-client \
ca-certificates && \
mkdir -p /usr/src/node-red /data && \
deluser --remove-home node && \
adduser -h /usr/src/node-red -D -H node-red -u 1000 && \
chown -R root:root /data && chmod -R g+rwX /data && \
chown -R root:root /usr/src/node-red && chmod -R g+rwX /usr/src/node-red
@ -75,7 +73,7 @@ LABEL org.label-schema.build-date=${BUILD_DATE} \
COPY --from=build /usr/src/node-red/prod_node_modules ./node_modules
# Chown, install devtools & Clean up
RUN chown -R node-red:root /usr/src/node-red && \
RUN chown -R root:root /usr/src/node-red && \
/tmp/install_devtools.sh && \
rm -r /tmp/*