sudo should be dynamic then too

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2021-03-06 06:48:58 +03:00
parent cba181007b
commit ca73f5eeaf
2 changed files with 5 additions and 4 deletions

View File

@ -1,12 +1,10 @@
FROM localhost/spark FROM localhost/spark
RUN pacman -Suy --noconfirm base-devel git
COPY locale.gen /etc/locale.gen COPY locale.gen /etc/locale.gen
RUN locale-gen RUN locale-gen
RUN pacman -Suy --noconfirm base-devel git COPY gnupg /.gnupg
COPY ./builder.sudoers /etc/sudoers.d/builder
COPY ./build /build COPY ./build /build
COPY gnupg /.gnupg
RUN chmod 700 /.gnupg RUN chmod 700 /.gnupg

View File

@ -11,6 +11,9 @@ pacman -Suy --noconfirm
# gnupg dir permissions # gnupg dir permissions
chown -R "$BUILDUSER:$BUILDUSER" /.gnupg chown -R "$BUILDUSER:$BUILDUSER" /.gnupg
# Add sudo permissions for pacman to install dependencies
printf '%s ALL=(ALL) NOPASSWD: /usr/bin/pacman\n' "$BUILDUSER" > /etc/sudoers.d/builduser
# Workdir # Workdir
cd /buildroot cd /buildroot