mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
docker: allow configuring UID/GID used inside the containers
This commit is contained in:
parent
ad1f5b8fde
commit
22d0b14ef1
3 changed files with 35 additions and 8 deletions
10
docker/production/node/Dockerfile
Normal file
10
docker/production/node/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM node:16.16
|
||||
|
||||
ARG DOCKER_USER_UID
|
||||
ARG DOCKER_USER_GID
|
||||
|
||||
# This custom Dockerfile is needed for the Node image so we can change the uid/gid used for the node user
|
||||
# See https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#non-root-user
|
||||
RUN groupmod -g "${DOCKER_USER_GID}" node && usermod -u "${DOCKER_USER_UID}" -g "${DOCKER_USER_GID}" node
|
||||
|
||||
USER node
|
Loading…
Add table
Add a link
Reference in a new issue