test(docker): push test image

This commit is contained in:
Eshan Roy
2024-11-29 07:14:43 +05:30
commit 28576e4fa2
3 changed files with 159 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,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/Snigdha-OS/snigdhaos-pkgbuilds/refs/heads/master/snigdhaos-mirrorlist/snigdhaos-mirrorlist -o /etc/pacman.d/snigdhaos-mirrorlist
## include to pacman own keyring to install signed packages
RUN pacman-key --init && \
pacman-key --recv-keys E1415F19F21171F2 --keyserver keyserver.ubuntu.com && \
pacman-key --lsign-key E1415F19F21171F2 && \
pacman -Sy && \
pacman -S --needed --noconfirm snigdhaos-keyring snigdhaos-mirrorlist && \
pacman -Syu --noconfirm && \
rm -rf /var/lib/pacman/sync/* && \
find /var/cache/pacman/ -type f -delete
FROM scratch
LABEL org.opencontainers.image.description="Snigdha OS - Arch-based distribution offering an easy installation, several customizations, and unique performance optimization."
COPY --from=rootfs / /
CMD ["/usr/bin/bash"]