Update Dockerfile

This commit is contained in:
Oskar 2021-10-31 18:42:03 +01:00 committed by GitHub
parent 8ee26f8d0f
commit 6b8654deef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
FROM archlinux
ADD pacman.conf /etc/pacman.conf
ADD mirrorlist /etc/pacman.d/mirrorlist
COPY pacman.conf /etc/pacman.conf
COPY mirrorlist /etc/pacman.d/mirrorlist
RUN pacman -Syu --noconfirm \
&& pacman -S --noconfirm \
@ -21,8 +21,7 @@ RUN pacman -Syu --noconfirm \
RUN useradd --create-home build
ADD sudoers /etc/sudoers
COPY sudoers /etc/sudoers
USER build
RUN sudo echo "Running 'sudo' for build: success"