diff --git a/Dockerfile.template b/Dockerfile.template new file mode 100644 index 0000000..be1b026 --- /dev/null +++ b/Dockerfile.template @@ -0,0 +1,31 @@ +FROM alpine:3.22 AS verify +COPY TEMPLATE_ROOTFS_FILE / + +RUN apk add --no-cache curl tar zstd + +RUN TEMPLATE_ROOTFS_DOWNLOAD && \ + echo "TEMPLATE_ROOTFS_HASH" > /tmp/sha256sums.txt && \ + sha256sum -c /tmp/sha256sums.txt && \ + mkdir /rootfs && \ + tar -C /rootfs --extract --file TEMPLATE_ROOTFS_FILE + +FROM scratch AS root + +LABEL org.opencontainers.image.title="TEMPLATE_TITLE" +LABEL org.opencontainers.image.description="Official containerd image of Arch Linux, a simple, lightweight Linux distribution aimed for flexibility." +LABEL org.opencontainers.image.authors="Amir Husayn Panahifar (@ahp)" +LABEL org.opencontainers.image.url="https://git.parchlinux.org/ahp/parchlinux-docker/-/blob/main/README.md" +LABEL org.opencontainers.image.documentation="https://wiki.parchlinux.org/title/Docker#Parch_Linux" +LABEL org.opencontainers.image.source="https://git.parchlinux.org/ahp/parchlinux-docker" +LABEL org.opencontainers.image.licenses="GPL-3.0-or-later" +LABEL org.opencontainers.image.version="TEMPLATE_VERSION_ID" +LABEL org.opencontainers.image.revision="TEMPLATE_REVISION" +LABEL org.opencontainers.image.created="TEMPLATE_CREATED" + +COPY --from=verify /rootfs/ / + +# RUN ldconfig && \ +# sed -i '/BUILD_ID/a VERSION_ID=TEMPLATE_VERSION_ID' /etc/os-release + +ENV LANG=C.UTF-8 +CMD ["/usr/bin/bash"] diff --git a/docker-library.template b/docker-library.template new file mode 100644 index 0000000..3116544 --- /dev/null +++ b/docker-library.template @@ -0,0 +1,4 @@ +# https://git.parchlinux.org/ahp/parchlinux-docker + +Maintainers: Amir Husayn Panahifar (@ahp), +GitRepo: https://git.parchlinux.org/ahp/parchlinux-docker.git