replace sudo with doas

This commit is contained in:
Jason Swank 2023-04-18 09:01:51 -04:00
parent 2754158669
commit b7a03d8f27

View File

@ -1,14 +1,13 @@
FROM alpine:3
RUN apk -U --no-cache add \
sudo \
doas doas-sudo-shim \
bash less \
coreutils grep gawk perl
# jq
RUN adduser -h /home/cli -s /bin/bash -D cli cli && \
addgroup cli wheel && \
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/allow-wheel
echo "permit nopass :wheel" > /etc/doas.d/allow-wheel.conf
COPY home /home/cli