forked from Spark/builder
sudo should be dynamic then too
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
cba181007b
commit
ca73f5eeaf
|
@ -1,12 +1,10 @@
|
|||
FROM localhost/spark
|
||||
RUN pacman -Suy --noconfirm base-devel git
|
||||
|
||||
COPY locale.gen /etc/locale.gen
|
||||
RUN locale-gen
|
||||
|
||||
RUN pacman -Suy --noconfirm base-devel git
|
||||
|
||||
COPY ./builder.sudoers /etc/sudoers.d/builder
|
||||
COPY gnupg /.gnupg
|
||||
COPY ./build /build
|
||||
|
||||
COPY gnupg /.gnupg
|
||||
RUN chmod 700 /.gnupg
|
||||
|
|
|
@ -11,6 +11,9 @@ pacman -Suy --noconfirm
|
|||
# gnupg dir permissions
|
||||
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
|
||||
cd /buildroot
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user