From a437d8cbcd7d43905fc4a2d846f39d82cd5662fc Mon Sep 17 00:00:00 2001 From: Dreista Date: Sat, 16 Dec 2023 14:40:11 -0500 Subject: [PATCH] Use setpriv instead of gosu --- Dockerfile | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d605f00..7decd19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,7 +55,7 @@ RUN ln -s /bin/true /bin/systemctl \ && groupadd --force --system --gid $ATLAS_GID atlas \ && usermod -aG atlas atlas \ && apt-get update -y \ - && apt-get install -y libcap2-bin iproute2 openssh-client procps net-tools gosu \ + && apt-get install -y libcap2-bin iproute2 openssh-client procps net-tools \ && dpkg -i /tmp/atlasswprobe-*.deb \ && apt-get install -fy \ && rm -rf /var/lib/apt/lists/* \ diff --git a/entrypoint.sh b/entrypoint.sh index 7331c69..9287081 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -38,4 +38,4 @@ for OPT in "${OPTIONS[@]}"; do fi done -exec gosu atlas:atlas "$@" +exec setpriv --reuid=$ATLAS_UID --regid=$ATLAS_GID --init-groups "$@"