feature(dockerfile): allow separate UID and GID during build

This commit is contained in:
Asif Bacchus 2021-07-25 15:03:24 -06:00
parent d045d098d9
commit 7ea21e2cc4
1 changed files with 3 additions and 2 deletions

View File

@ -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 \