From 7ea21e2cc409aeaffc3ba2916a1300222a25f1c2 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 25 Jul 2021 15:03:24 -0600 Subject: [PATCH] feature(dockerfile): allow separate UID and GID during build --- build/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 9675c37..2410014 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,10 +1,11 @@ FROM nginx:mainline-alpine -# default uid for nginx user +# default uid and gid for nginx user ARG UID=8080 +ARG GID=8080 # create nginx user -RUN addgroup --gid ${UID} www-docker \ +RUN addgroup --gid ${GID} www-docker \ && adduser \ -S \ -h /home/www-docker \