-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
22 lines (18 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM archlinux:base-devel AS rootfs
RUN pacman -Syu --noconfirm && \
pacman -S --needed --noconfirm pacman-contrib git openssh sudo curl
COPY pacman.conf /etc/pacman.conf
RUN curl https://raw.githubusercontent.com/CachyOS/CachyOS-PKGBUILDS/master/cachyos-mirrorlist/cachyos-mirrorlist -o /etc/pacman.d/cachyos-mirrorlist
## include to pacman own keyring to install signed packages
RUN pacman-key --init && \
pacman-key --recv-keys F3B607488DB35A47 --keyserver keyserver.ubuntu.com && \
pacman-key --lsign-key F3B607488DB35A47 && \
pacman -Sy && \
pacman -S --needed --noconfirm cachyos-keyring cachyos-mirrorlist cachyos-v3-mirrorlist cachyos-v4-mirrorlist cachyos-hooks && \
pacman -Syu --noconfirm && \
rm -rf /var/lib/pacman/sync/* && \
find /var/cache/pacman/ -type f -delete
FROM scratch
LABEL org.opencontainers.image.description="CachyOS - Arch-based distribution offering an easy installation, several customizations, and unique performance optimization."
COPY --from=rootfs / /
CMD ["/usr/bin/bash"]