GUACAMOLE-1110: Create a proper dedicated service group

This commit is contained in:
benrubson 2020-12-07 10:35:06 +01:00
parent 7fcddef117
commit 4a5a350f59

View File

@ -115,7 +115,9 @@ HEALTHCHECK --interval=5m --timeout=5s CMD nc -z 127.0.0.1 4822 || exit 1
# Create a new user guacd # Create a new user guacd
ARG UID=1000 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 # Run with user guacd
USER guacd USER guacd