Update Dockerfile
This commit is contained in:
parent
8ee26f8d0f
commit
6b8654deef
|
@ -1,7 +1,7 @@
|
||||||
FROM archlinux
|
FROM archlinux
|
||||||
|
|
||||||
ADD pacman.conf /etc/pacman.conf
|
COPY pacman.conf /etc/pacman.conf
|
||||||
ADD mirrorlist /etc/pacman.d/mirrorlist
|
COPY mirrorlist /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
RUN pacman -Syu --noconfirm \
|
RUN pacman -Syu --noconfirm \
|
||||||
&& pacman -S --noconfirm \
|
&& pacman -S --noconfirm \
|
||||||
|
@ -21,8 +21,7 @@ RUN pacman -Syu --noconfirm \
|
||||||
|
|
||||||
RUN useradd --create-home build
|
RUN useradd --create-home build
|
||||||
|
|
||||||
ADD sudoers /etc/sudoers
|
COPY sudoers /etc/sudoers
|
||||||
|
|
||||||
USER build
|
USER build
|
||||||
|
|
||||||
RUN sudo echo "Running 'sudo' for build: success"
|
RUN sudo echo "Running 'sudo' for build: success"
|
||||||
|
|
Loading…
Reference in New Issue