2020-04-16 22:36:28 +00:00
|
|
|
FROM depau/archlinux-daily:aarch64
|
2019-01-22 23:31:17 +00:00
|
|
|
|
|
|
|
WORKDIR /archlinux
|
|
|
|
|
|
|
|
RUN mkdir -p /archlinux/rootfs
|
|
|
|
|
2020-04-16 17:35:58 +00:00
|
|
|
COPY rootfs/alarm/etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist
|
2021-04-10 21:37:11 +00:00
|
|
|
COPY rootfs/alarm/etc/pacman.conf /etc/pacman.conf
|
2020-04-16 21:57:18 +00:00
|
|
|
COPY pacstrap-docker /archlinux/
|
2019-01-22 23:31:17 +00:00
|
|
|
|
|
|
|
RUN ./pacstrap-docker /archlinux/rootfs \
|
2020-04-16 22:22:34 +00:00
|
|
|
bash sed gzip pacman
|
2019-01-22 23:31:17 +00:00
|
|
|
|
|
|
|
# Remove current pacman database, likely outdated very soon
|
|
|
|
RUN rm rootfs/var/lib/pacman/sync/*
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=0 /archlinux/rootfs/ /
|
2021-07-31 11:59:49 +00:00
|
|
|
|
|
|
|
# Workaround for 'failed to get layer'
|
|
|
|
# https://stackoverflow.com/a/62409523/1124621
|
|
|
|
RUN true
|
|
|
|
|
2020-04-16 17:35:58 +00:00
|
|
|
COPY rootfs/alarm/ /
|
2019-01-22 23:31:17 +00:00
|
|
|
|
|
|
|
ENV LANG=en_US.UTF-8
|
|
|
|
|
|
|
|
RUN locale-gen
|
|
|
|
RUN pacman-key --init
|
|
|
|
RUN pacman-key --populate archlinuxarm
|
|
|
|
|
|
|
|
CMD ["/usr/bin/bash"]
|