You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crystal-docker/Dockerfile

31 lines
1.2 KiB
Docker

2 years ago
FROM archlinux:latest
LABEL org.opencontainers.image.description="A work-in-progress, easy to use, set up and configure Arch Linux derivative"
2 years ago
RUN pacman -Syu --noconfirm
RUN pacman -S --needed --noconfirm pacman-contrib base-devel git openssh
2 years ago
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-packages/crystal-keyring.git /tmp/crystal-keyring
2 years ago
RUN pushd /tmp/crystal-keyring && makepkg --noconfirm -sp /tmp/crystal-keyring/PKGBUILD && popd
RUN git clone https://github.com/crystal-linux-packages/crystal-mirrorlist.git /tmp/crystal-mirrorlist
RUN pushd /tmp/crystal-mirrorlist && makepkg --noconfirm -sp /tmp/crystal-mirrorlist/PKGBUILD && popd
2 years ago
USER root
RUN userdel temp-user
RUN pacman --noconfirm -U /tmp/crystal-{keyring,mirrorlist}/*.zst
RUN rm -rfv /tmp/crystal-{keyring,mirrorlist}
2 years ago
RUN pacman-key --init
RUN pacman-key --populate crystal
RUN curl https://repo.getcryst.al/pacman.conf -o /etc/pacman.conf
2 years ago
RUN sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf
RUN pacman -Syu --noconfirm
RUN pacman -S --needed --noconfirm crystal-core crystal-branding