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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user