From 4a5a350f599c7c62ac6599b5ae0073bd5de548fe Mon Sep 17 00:00:00 2001 From: benrubson <6764151+benrubson@users.noreply.github.com> Date: Mon, 7 Dec 2020 10:35:06 +0100 Subject: [PATCH] GUACAMOLE-1110: Create a proper dedicated service group --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 934ba835..c911aae1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -115,7 +115,9 @@ HEALTHCHECK --interval=5m --timeout=5s CMD nc -z 127.0.0.1 4822 || exit 1 # Create a new user guacd ARG UID=1000 -RUN useradd --system --create-home --shell /usr/sbin/nologin --uid $UID --no-user-group guacd +ARG GID=1000 +RUN groupadd --gid $GID guacd +RUN useradd --system --create-home --shell /usr/sbin/nologin --uid $UID --gid $GID guacd # Run with user guacd USER guacd