Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion non-root/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ ENV HOME /home/$USER

# install sudo as root
RUN apk add --no-cache sudo
RUN apk add --no-cache bash make pkgconf curl fakeroot libarchive-tools file xz cmake sudo git

# add new user
RUN adduser -D $USER \
&& echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER \
&& chmod 0440 /etc/sudoers.d/$USER

USER $USER
WORKDIR $HOME
WORKDIR $HOME