Use setpriv instead of gosu

This commit is contained in:
Dreista 2023-12-16 14:40:11 -05:00 committed by Jamesits
parent 41aa1d5940
commit a437d8cbcd
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ RUN ln -s /bin/true /bin/systemctl \
&& groupadd --force --system --gid $ATLAS_GID atlas \ && groupadd --force --system --gid $ATLAS_GID atlas \
&& usermod -aG atlas atlas \ && usermod -aG atlas atlas \
&& apt-get update -y \ && 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 \ && dpkg -i /tmp/atlasswprobe-*.deb \
&& apt-get install -fy \ && apt-get install -fy \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \

View File

@ -38,4 +38,4 @@ for OPT in "${OPTIONS[@]}"; do
fi fi
done done
exec gosu atlas:atlas "$@" exec setpriv --reuid=$ATLAS_UID --regid=$ATLAS_GID --init-groups "$@"