docker-archlinux-daily/Dockerfile.x86_64
Davide Depau a04df8e4bc
All checks were successful
continuous-integration/drone/push Build is passing
Copy mirrorlist before pacstrap-docker for docker cache
2020-04-16 23:57:18 +02:00

26 lines
550 B
Text

FROM archlinux:latest
WORKDIR /archlinux
RUN mkdir -p /archlinux/rootfs
COPY rootfs/archlinux/etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist
COPY pacstrap-docker /archlinux/
RUN ./pacstrap-docker /archlinux/rootfs \
bash sed gzip pacman base base-devel
# Remove current pacman database, likely outdated very soon
RUN rm rootfs/var/lib/pacman/sync/*
FROM scratch
COPY --from=0 /archlinux/rootfs/ /
COPY rootfs/archlinux/ /
ENV LANG=en_US.UTF-8
RUN locale-gen
RUN pacman-key --init
RUN pacman-key --populate archlinux
CMD ["/usr/bin/bash"]