Skip to content

Commit da08dac

Browse files
committed
user
1 parent eb3425a commit da08dac

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/docker/alpine-3.21.Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ ENV OS_VER=3.21
1616

1717
# Base development packages
1818
ARG BASE_DEPS="\
19+
bash \
1920
cmake \
2021
git \
2122
g++ \
22-
make"
23+
make \
24+
sudo"
2325

2426
# UMF's dependencies
2527
ARG UMF_DEPS="\
@@ -35,3 +37,10 @@ RUN apk update \
3537
${BASE_DEPS} \
3638
${TEST_DEPS} \
3739
${UMF_DEPS}
40+
41+
# Add a new (non-root) 'test_user'
42+
#ENV USER test_user
43+
#ENV USERPASS pass
44+
RUN adduser -D test_user -G wheel
45+
RUN echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
46+
USER test_user

0 commit comments

Comments
 (0)