2019-01-23 00:08:08 +00:00
|
|
|
FROM agners/archlinuxarm-arm64v8
|
2019-01-22 23:31:17 +00:00
|
|
|
|
|
|
|
WORKDIR /archlinux
|
|
|
|
|
|
|
|
RUN mkdir -p /archlinux/rootfs
|
|
|
|
|
|
|
|
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/ /
|
|
|
|
COPY rootfs/ /
|
|
|
|
|
|
|
|
ENV LANG=en_US.UTF-8
|
|
|
|
|
|
|
|
RUN locale-gen
|
|
|
|
RUN pacman-key --init
|
|
|
|
RUN pacman-key --populate archlinuxarm
|
|
|
|
|
|
|
|
CMD ["/usr/bin/bash"]
|