replace sudo with doas
This commit is contained in:
parent
2754158669
commit
b7a03d8f27
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user