Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
fixes workspace folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Plüddemann committed Apr 17, 2024
1 parent f27396c commit 416250e
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

0 comments on commit 416250e

Please sign in to comment.