diff --git a/.ci/docker-ci/arch/Dockerfile b/.ci/docker-ci/arch/Dockerfile index e14e7b31..0a767e71 100644 --- a/.ci/docker-ci/arch/Dockerfile +++ b/.ci/docker-ci/arch/Dockerfile @@ -15,3 +15,13 @@ RUN pacman -Syu --needed --noconfirm \ make \ procps +WORKDIR /build + +COPY PKGBUILD . + +# Build the package +RUN makepkg --noconfirm + +# Clean up unnecessary files and packages to reduce the image size +RUN rm -rf /var/cache/pacman/pkg/* && \ + pacman -Rns --noconfirm $(pacman -Qdtq)