feat: allow set env
All checks were successful
push / build (push) Successful in 2m35s

This commit is contained in:
张泊明518370910136 2024-10-07 01:55:49 -04:00
parent a7041473ab
commit 35c9e19e90
GPG Key ID: CA088E6D9284F870

View File

@ -10,7 +10,7 @@ RUN apt-get update && \
useradd -u 1000 -ms /bin/bash tt && \ useradd -u 1000 -ms /bin/bash tt && \
useradd -u 1001 -ms /bin/bash student && \ useradd -u 1001 -ms /bin/bash student && \
usermod -aG student tt && \ usermod -aG student tt && \
echo "student ALL=(tt) NOPASSWD:/usr/local/bin/joj3\nstudent ALL=(tt) NOPASSWD:/usr/local/bin/joj3-teapot" > /etc/sudoers.d/joj echo "student ALL=(tt) NOPASSWD:SETENV:/usr/local/bin/joj3\nstudent ALL=(tt) NOPASSWD:SETENV:/usr/local/bin/joj3-teapot" > /etc/sudoers.d/joj
# install joint-teapot # install joint-teapot
# TODO: change it to FOCS gitea mirror for deployment # TODO: change it to FOCS gitea mirror for deployment