diff --git a/Dockerfile b/Dockerfile index 91b2e61..9b48cdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,6 @@ -FROM docker:26-dind-rootless as base +FROM docker:26-dind as base -ARG USERNAME=otel -ARG GROUPNAME=$USERNAME -ARG USER_UID=1001 -ARG USER_GID=$USER_UID - -USER root +ENV PIP_ROOT_USER_ACTION=ignore RUN apk update --no-cache RUN apk upgrade --no-cache @@ -40,24 +35,4 @@ RUN pip install \ WORKDIR /workspace -# RUN addgroup \ -# --gid "$USER_GID" \ -# "$GROUPNAME" -# RUN adduser \ -# --disabled-password \ -# --gecos "" \ -# --home "$(pwd)" \ -# --ingroup "$GROUPNAME" \ -# --no-create-home \ -# --uid "$USER_UID" \ -# $USERNAME \ -# && mkdir -p /etc/sudoers.d \ -# && echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USERNAME \ -# && chmod 0440 /etc/sudoers.d/$USERNAME - -# RUN echo '${USERNAME}:100000:65536' >> /etc/subuid -# RUN echo '${USERNAME}:100000:65536' >> /etc/subgid - -USER rootless - EXPOSE 5000