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.

30 lines
596 B

FROM agners/archlinuxarm-arm32v7
WORKDIR /archlinux
RUN mkdir -p /archlinux/rootfs
COPY rootfs/alarm/etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist
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/*
RUN ls -la /archlinux/rootfs/
FROM scratch
COPY --from=0 /archlinux/rootfs/ /
RUN ls -la /
COPY rootfs/alarm/ /
RUN ls -la /
RUN locale-gen
RUN pacman-key --init
RUN pacman-key --populate archlinuxarm
CMD ["/usr/bin/bash"]