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 "$@"