docker-archlinux-daily/Dockerfile
Stefan Agner 8dfabe4056 initial commit
Create Arch Linux ARM images using multi-stage Dockerfile. This
works well with binfmt emulation and allows to generate images
from scratch.

Inspiration taken from:
- https://github.com/archlinux/archlinux-docker
- https://github.com/lopsided98/archlinux
2019-01-23 00:31:17 +01:00

26 lines
467 B
Docker

FROM agners/archlinuxarm-arm32v7
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"]