2019-01-22 23:31:17 +00:00
|
|
|
FROM agners/archlinuxarm-arm32v7
|
|
|
|
|
|
|
|
WORKDIR /archlinux
|
|
|
|
|
|
|
|
RUN mkdir -p /archlinux/rootfs
|
|
|
|
|
|
|
|
COPY pacstrap-docker /archlinux/
|
2020-04-16 17:35:58 +00:00
|
|
|
COPY rootfs/alarm/etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist
|
2019-01-22 23:31:17 +00:00
|
|
|
|
|
|
|
RUN ./pacstrap-docker /archlinux/rootfs \
|
2020-04-16 17:20:47 +00:00
|
|
|
bash sed gzip pacman base base-devel
|
2019-01-22 23:31:17 +00:00
|
|
|
|
|
|
|
# Remove current pacman database, likely outdated very soon
|
|
|
|
RUN rm rootfs/var/lib/pacman/sync/*
|
2019-01-24 13:56:47 +00:00
|
|
|
RUN ls -la /archlinux/rootfs/
|
2019-01-22 23:31:17 +00:00
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=0 /archlinux/rootfs/ /
|
2019-01-24 13:56:47 +00:00
|
|
|
RUN ls -la /
|
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
|
|
|
|
|
2019-01-24 13:56:47 +00:00
|
|
|
RUN ls -la /
|
2019-01-22 23:31:17 +00:00
|
|
|
RUN locale-gen
|
|
|
|
RUN pacman-key --init
|
|
|
|
RUN pacman-key --populate archlinuxarm
|
|
|
|
|
|
|
|
CMD ["/usr/bin/bash"]
|