Add changing the uid and gid in docker through env variables
This commit is contained in:
parent
0953400321
commit
fa37d5bf59
2 changed files with 8 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ COPY run.sh /run.sh
|
|||
# copy compiled files from stage 1
|
||||
COPY --from=compile-image /build/dist /usr/share/nginx/html
|
||||
|
||||
# Unprivileged user
|
||||
ENV PUID 1000
|
||||
ENV PGID 1000
|
||||
|
||||
LABEL maintainer="maintainers@vikunja.io"
|
||||
|
||||
CMD "/run.sh"
|
||||
Reference in a new issue