commit 9dd0cbb9bc9d5c8b04b26a2afc6f81ce6471cb86 Author: michal Date: Mon Jun 13 01:00:54 2022 +0100 init diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9ca822c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM archlinux:latest + +RUN pacman -Syu --noconfirm +RUN pacman -S --needed --noconfirm pacman-contrib base-devel git wget + +RUN useradd -u 901 temp-user +RUN mkdir /tmp/crystal-keyring +RUN chown temp-user /tmp/crystal-keyring + +USER temp-user +RUN git clone https://github.com/crystal-linux/crystal-keyring.git /tmp/crystal-keyring +RUN pushd /tmp/crystal-keyring && makepkg --noconfirm -sp /tmp/crystal-keyring/PKGBUILD && popd + +USER root +RUN pacman --noconfirm -U /tmp/crystal-keyring/*.zst +RUN rm -rfv /tmp/crystal-keyring + +RUN pacman-key --init +RUN pacman-key --populate crystal + +RUN mv /etc/pacman.conf /etc/pacman.conf.old +RUN wget https://repo.getcryst.al/pacman.conf +RUN mv pacman.conf /etc/pacman.conf +RUN sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf + +RUN mv /etc/os-release /etc/os-release.old + +RUN pacman -Syu --noconfirm \ No newline at end of file