Dockerfile.template 620 Bytes
Newer Older
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
1
2
FROM scratch AS base
ADD TEMPLATE_LOCATION_HERE /
3
4

# manually run all alpm hooks that can't be run inside the fakechroot
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
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
# initialize the archlinux keyring, but discard any private key that may be shipped.
Sven-Hendrik Haase's avatar
Sven-Hendrik Haase committed
12
RUN pacman-key --init && pacman-key --populate archlinux && bash -c "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"]