From 53844c79c31795aa60c9a1c60534a137c1f6b21d Mon Sep 17 00:00:00 2001 From: Florian HEGRON <> Date: Tue, 31 Oct 2023 16:40:07 +0100 Subject: [PATCH] OCT-214: add possibility to customize node UID and GID when building the image --- docker/Dockerfile_node | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile_node b/docker/Dockerfile_node index 61f76833ed52..616e9dba7c01 100644 --- a/docker/Dockerfile_node +++ b/docker/Dockerfile_node @@ -1,7 +1,10 @@ FROM debian:bullseye-slim -RUN groupadd --gid 1000 node \ - && useradd --uid 1000 --gid node --shell /bin/bash --create-home node +ARG DEV_UID=1000 +ARG DEV_GID=1000 + +RUN groupadd --gid ${DEV_GID} node \ + && useradd --uid ${DEV_UID} --gid node --shell /bin/bash --create-home node RUN echo 'path-exclude=/usr/share/man/*' > /etc/dpkg/dpkg.cfg.d/path_exclusions && \ echo 'path-exclude=/usr/share/doc/*' >> /etc/dpkg/dpkg.cfg.d/path_exclusions && \