fix: fix regression in LOCAL_USER (#5517)

Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
This commit is contained in:
ixlmar 2025-06-26 11:10:55 +02:00 committed by GitHub
parent c2799d0465
commit a811077f90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ ARG GROUP_NAME=root
RUN (getent group ${GROUP_ID} || groupadd --gid ${GROUP_ID} ${GROUP_NAME}) && \
(getent passwd ${USER_ID} || useradd --gid ${GROUP_ID} --uid ${USER_ID} --create-home --no-log-init --shell /bin/bash ${USER_NAME}) && \
chown ${USER_NAME}:${GROUP_NAME} /app/tensorrt_llm && \
if [ -d /app/tensorrt_llm ]; then chown ${USER_NAME}:${GROUP_NAME} /app/tensorrt_llm; fi && \
apt-get update && \
apt-get install -y sudo && \
adduser ${USER_NAME} sudo && \