docker-arch/Dockerfile

30 lines
504 B
Docker
Raw Normal View History

2021-10-30 20:31:43 +00:00
FROM archlinux
2021-10-09 12:16:01 +00:00
2021-10-31 17:42:03 +00:00
COPY pacman.conf /etc/pacman.conf
2021-11-12 10:52:45 +00:00
COPY makepkg.conf /etc/makepkg.conf
2021-10-31 17:42:03 +00:00
COPY mirrorlist /etc/pacman.d/mirrorlist
2021-10-11 15:56:18 +00:00
2021-11-12 10:58:16 +00:00
RUN pacman -Sy --noconfirm \
2021-10-30 20:31:43 +00:00
base \
base-devel \
2021-10-23 10:45:41 +00:00
yay \
2021-10-09 12:42:03 +00:00
git \
2021-10-09 17:12:12 +00:00
wget \
2021-10-09 21:24:06 +00:00
curl \
2021-10-24 14:36:04 +00:00
pacman-contrib \
2021-10-30 20:31:43 +00:00
ccache \
2021-11-21 12:05:24 +00:00
clang \
llvm \
lld \
python \
2021-11-20 09:59:15 +00:00
jq \
2021-11-25 07:23:13 +00:00
&& pacman -Syu \
2021-10-23 11:59:12 +00:00
&& yes | pacman -Scc
2021-10-09 12:52:02 +00:00
2021-10-17 10:01:12 +00:00
RUN useradd --create-home build
2021-10-09 13:30:21 +00:00
2021-10-31 17:42:03 +00:00
COPY sudoers /etc/sudoers
2021-10-09 12:52:02 +00:00
2021-10-17 10:01:12 +00:00
USER build
RUN sudo echo "Running 'sudo' for build: success"