mirror of
https://gitlab.archlinux.org/archlinux/archlinux-docker.git
synced 2026-01-12 21:01:02 +01:00
16 lines
597 B
Docker
16 lines
597 B
Docker
FROM scratch
|
|
ADD archlinux.tar.xz /
|
|
|
|
# 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 '
|
|
|
|
# update /etc/os-release
|
|
RUN ln -s /usr/lib/os-release /etc/os-release
|
|
|
|
# initialize the archlinux keyring, but discard any private key that may be shipped.
|
|
RUN pacman-key --init && pacman-key --populate archlinux && rm -rf etc/pacman.d/gnupg/{openpgp-revocs.d/,private-keys-v1.d/,pubring.gpg~,gnupg.S.}*
|
|
|
|
ENV LANG=en_US.UTF-8
|
|
CMD ["/usr/bin/bash"]
|