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
|
FROM nginx:mainline-alpine
|
||||||
|
|
||||||
# default uid for nginx user
|
# default uid and gid for nginx user
|
||||||
ARG UID=8080
|
ARG UID=8080
|
||||||
|
ARG GID=8080
|
||||||
|
|
||||||
# create nginx user
|
# create nginx user
|
||||||
RUN addgroup --gid ${UID} www-docker \
|
RUN addgroup --gid ${GID} www-docker \
|
||||||
&& adduser \
|
&& adduser \
|
||||||
-S \
|
-S \
|
||||||
-h /home/www-docker \
|
-h /home/www-docker \
|
||||||
|
Loading…
Reference in New Issue
Block a user