feature(dockerfile): allow separate UID and GID during build
This commit is contained in:
parent
d045d098d9
commit
7ea21e2cc4
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user