Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions Dockerfile-v4
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
FROM cachyos/cachyos:latest as qemu-x86_64-static

RUN pacman -Sy && \
pacman -S --needed --noconfirm qemu-user-static

FROM cachyos/cachyos:latest as rootfs

COPY --from=qemu-x86_64-static --chmod=755 /usr/bin/qemu-x86_64-static /tmp/qemu-x86_64-static

COPY pacman-v4.conf /etc/pacman.conf
RUN pacman -Syu --noconfirm && \
rm -rf /var/lib/pacman/sync/* && \
find /var/cache/pacman/ -type f -delete
RUN /tmp/qemu-x86_64-static --cpu Skylake-Server-v5 pacman -Syu --noconfirm && \
/tmp/qemu-x86_64-static --cpu Skylake-Server-v5 rm -rf /var/lib/pacman/sync/* && \
/tmp/qemu-x86_64-static --cpu Skylake-Server-v5 find /var/cache/pacman/ -type f -delete && \
/tmp/qemu-x86_64-static --cpu Skylake-Server-v5 find /tmp/qemu-x86_64-static -type f -delete

FROM scratch
LABEL org.opencontainers.image.description="CachyOS - Arch-based distribution offering an easy installation, several customizations, and unique performance optimization. - v4 optimized Packages"
Expand Down