docker-arch/Dockerfile

36 lines
779 B
Docker
Raw Normal View History

2021-10-30 20:31:43 +00:00
FROM archlinux
2021-10-09 12:16:01 +00:00
2022-01-11 22:23:11 +00:00
COPY resolv.conf /etc/resolv.conf
2022-01-10 17:06:27 +00:00
RUN pacman-key --init \
&& pacman-key --recv-key 7A6646A6C14690C0 \
2022-01-10 17:04:36 +00:00
&& pacman-key --lsign-key 7A6646A6C14690C0 \
2022-01-18 20:11:29 +00:00
&& pacman -U --noconfirm 'http://5.135.168.176/packages/medzikuser-mirrorlist-latest-any.pkg.tar.xz' \
2022-01-11 15:33:23 +00:00
&& yes | pacman -Scc
2022-01-10 17:04:36 +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-12-16 16:12:48 +00:00
multilib-devel \
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
python \
2021-11-20 09:59:15 +00:00
jq \
2021-11-26 21:51:12 +00:00
unzip \
2021-11-25 07:26:07 +00:00
&& pacman -Syu --noconfirm \
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"