mirror of
https://gitlab.archlinux.org/archlinux/archlinux-docker.git
synced 2026-01-16 14:51:08 +01:00
The old Dockerfile and Makefile pair didn't meet the requirements of the ci-test. Namely, the (very sensible )requirement of not shipping a private key was missing, the sysusers hook wasn't executed properly and the /var/cache/pacman/pkg folder was remoed (and it's specified in the pacman MTREE package)
14 lines
522 B
Docker
14 lines
522 B
Docker
FROM scratch
|
|
ADD archlinux.tar /
|
|
|
|
# manually run all alpm hooks that can't be run inside the fakechroot
|
|
RUN ldconfig && update-ca-trust && locale-gen
|
|
RUN sh -c 'ls usr/lib/sysusers.d/*.conf | /usr/share/libalpm/scripts/systemd-hook sysusers '
|
|
|
|
# initialize the archilnux keyring, but discard any private key that may be shipped.
|
|
RUN pacman-key --init && pacman-key --populate archlinux
|
|
RUN rm -rf etc/pacman.d/gnupg/{openpgp-revocs.d/,private-keys-v1.d/,pugring.gpg~,gnupg.S.}*
|
|
|
|
ENV LANG=en_US.UTF-8
|
|
CMD ["/usr/bin/bash"]
|