Commit 90c299bc authored by Kevin Daudt's avatar Kevin Daudt 💻

Dockerfile: switch from sudo to doas

Doas a simpler replacement for sudo, which does everything we need. So
switch to doas.
parent 50499ca8
Pipeline #84614 failed with stage
in 12 seconds
......@@ -9,4 +9,7 @@ COPY overlay/ /
RUN setup.sh $VERSION
# Used by abuild-keygen
ENV SUDO=doas
USER buildozer
permit nopass buildozer as root
Set disable_coredump false
%wheel ALL=(ALL) NOPASSWD: ALL
......@@ -6,19 +6,12 @@ release=${1:-edge}
echo "http://dl-cdn.alpinelinux.org/alpine/$release/main" > /etc/apk/repositories
apk -U upgrade -a
apk add alpine-sdk lua-aports pigz gcc-gnat sudo
apk add alpine-sdk lua-aports pigz gcc-gnat doas
rm -rf /var/cache/apk/*
# use buildozer for building
adduser -D buildozer
adduser buildozer abuild
adduser buildozer wheel
# default distfiles location
install -d -g abuild -m 775 /var/cache/distfiles
# fix permissions due to umask 0000
chmod 750 /etc/sudoers.d
chmod 640 /etc/sudoers.d/*
chmod 640 /etc/sudo.conf
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment