Dockerfile 597 Bytes
Newer Older
Pierre Schmitz's avatar
Pierre Schmitz committed
1
FROM scratch
2
ADD archlinux.tar.xz /
3
4

# manually run all alpm hooks that can't be run inside the fakechroot
5
RUN ldconfig && update-ca-trust && locale-gen 
6
7
RUN sh -c 'ls usr/lib/sysusers.d/*.conf | /usr/share/libalpm/scripts/systemd-hook sysusers '

8
9
10
# update /etc/os-release
RUN ln -s /usr/lib/os-release /etc/os-release

11
12
# 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.}*
13

14
ENV LANG=en_US.UTF-8
Pierre Schmitz's avatar
Pierre Schmitz committed
15
CMD ["/usr/bin/bash"]