From d0eb4cc821b15e02964867b88f192b44f0af5e3e Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 24 Jul 2021 16:21:07 -0600 Subject: [PATCH] feature(dockerfile): allow setting separate GID --- build/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 51c5735..71f141b 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -5,10 +5,11 @@ ARG NODE_VERSION=16 ARG ALPINE_VERSION=3.14 FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} -# create new node user with set id from build-arg and create volume directories +# create new node user with set UID and GID from build-args and create volume directories ARG NODE_UID=9999 +ARG NODE_GID=9999 RUN deluser --remove-home node \ - && addgroup -g ${NODE_UID} -S node \ + && addgroup -g ${NODE_GID} -S node \ && adduser -G node -S -u ${NODE_UID} node \ && mkdir /watch /certs \ && chown root:node /certs \