forked from agners/archlinuxarm-docker
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
32 lines (23 loc) · 890 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ARG ARCH=amd64
FROM lopsided/archlinux-$ARCH
WORKDIR /archlinux
RUN mkdir -p /archlinux/rootfs
COPY pacstrap-docker /archlinux/
RUN ./pacstrap-docker /archlinux/rootfs \
bash sed gzip pacman archlinux-keyring && \
# Install Arch Linux ARM keyring if available
(pacman -r /archlinux/rootfs -S --noconfirm archlinuxarm-keyring || true) && \
# Remove current pacman database, likely outdated very soon
rm rootfs/var/lib/pacman/sync/*
FROM scratch
ARG ARCH=amd64
COPY --from=0 /archlinux/rootfs/ /
COPY rootfs/common/ /
COPY rootfs/$ARCH/ /
ENV LANG=en_US.UTF-8
RUN locale-gen && \
pacman-key --init && \
pacman-key --populate archlinux && \
(pacman-key --populate archlinuxarm || true) && \
echo 68B3537F39A313B3E574D06777193F152BDBE6A6:6: | gpg --homedir /etc/pacman.d/gnupg --allow-weak-key-signatures --import-ownertrust
CMD ["/usr/bin/bash"]