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.

33 lines
698 B

FROM depau/archlinux-daily:x86_64
WORKDIR /archlinux
RUN mkdir -p /archlinux/rootfs
COPY rootfs/archlinux/etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist
COPY rootfs/archlinux/etc/pacman.conf /etc/pacman.conf
COPY pacstrap-docker /archlinux/
RUN ./pacstrap-docker /archlinux/rootfs \
bash sed gzip pacman
# Remove current pacman database, likely outdated very soon
RUN rm rootfs/var/lib/pacman/sync/*
FROM scratch
COPY --from=0 /archlinux/rootfs/ /
# Workaround for 'failed to get layer'
RUN true
COPY rootfs/archlinux/ /
RUN locale-gen
RUN pacman-key --init
RUN pacman-key --populate archlinux
CMD ["/usr/bin/bash"]