Skip to content

Commit 80a57ba

Browse files
committed
tm
1 parent da08dac commit 80a57ba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/docker/alpine-3.21.Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ ENV OS_VER=3.21
1818
ARG BASE_DEPS="\
1919
bash \
2020
cmake \
21+
doas \
2122
git \
2223
g++ \
2324
make \
@@ -41,6 +42,9 @@ RUN apk update \
4142
# Add a new (non-root) 'test_user'
4243
#ENV USER test_user
4344
#ENV USERPASS pass
44-
RUN adduser -D test_user -G wheel
45-
RUN echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
45+
RUN adduser -D test_user
46+
RUN echo "permit persist keepenv :wheel" > /etc/doas.conf
47+
48+
# Add test_user to wheel group (common admin group in Alpine)
49+
RUN addgroup test_user wheel
4650
USER test_user

0 commit comments

Comments
 (0)