codegen: fix for users with large uids

This commit is contained in:
Mathias Zeller 2022-04-15 15:12:08 +02:00 committed by GitHub
parent 85b0a47fe8
commit ffdd693ff6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ FROM golang:1.17
ARG USER=$USER ARG USER=$USER
ARG UID=$UID ARG UID=$UID
ARG GID=$GID ARG GID=$GID
RUN useradd -m ${USER} --uid=${UID} && echo "${USER}:" chpasswd RUN useradd -l -m ${USER} --uid=${UID} && echo "${USER}:" chpasswd
USER ${UID}:${GID} USER ${UID}:${GID}
ARG KUBE_VERSION ARG KUBE_VERSION