From 71cdb7ec25c5a6cdb05a1765fc6145e2c29a31fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Maldonado?= Date: Thu, 17 Oct 2024 00:19:55 +0200 Subject: [PATCH] Dockerfile: allow UID/GID customization --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7315edfb0b..040769d16a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,14 @@ RUN apt-get update && \ libxkbfile-dev && \ rm -rf /var/lib/apt/lists/* -USER node +ARG PUID=1000 \ + PGID=1000 + +RUN userdel -r node && \ + addgroup --gid "$PGID" pulsar && \ + adduser --disabled-password --uid "$PUID" --gid "$PGID" --comment "" --no-create-home pulsar + +USER pulsar ENTRYPOINT ["/usr/bin/env", "sh", "-c"] CMD ["bash"]