LABEL org.opencontainers.image.title=Arch Linux base-devel Image |
LABEL org.opencontainers.image.description=Official containerd image of Arch Linux, a simple, lightweight Linux distribution aimed for flexibility. |
LABEL org.opencontainers.image.authors=Santiago Torres-Arias <santiago@archlinux.org> (@SantiagoTorres), Christian Rebischke <Chris.Rebischke@archlinux.org> (@shibumi), Justin Kromlinger <hashworks@archlinux.org> (@hashworks) |
LABEL org.opencontainers.image.url=https://gitlab.archlinux.org/archlinux/archlinux-docker/-/blob/master/README.md |
LABEL org.opencontainers.image.documentation=https://wiki.archlinux.org/title/Docker#Arch_Linux |
LABEL org.opencontainers.image.source=https://gitlab.archlinux.org/archlinux/archlinux-docker |
LABEL org.opencontainers.image.licenses=GPL-3.0-or-later |
LABEL org.opencontainers.image.version=20241103.0.276161 |
LABEL org.opencontainers.image.revision=61cb892bfc251e46f73e716ceb3b903ec4e9e725 |
LABEL org.opencontainers.image.created=2024-11-03T00:07:41+00:00 |
COPY /rootfs/ / # buildkit |
RUN /bin/sh -c ldconfig && sed -i '/BUILD_ID/a VERSION_ID=20241103.0.276161' /etc/os-release # buildkit |
ENV LANG=C.UTF-8 |
CMD ["/usr/bin/bash"] |
LABEL org.opencontainers.image.title="Arch Packaging Container" |
LABEL org.opencontainers.image.description="An isolated environment for building Arch Linux packages." |
LABEL org.opencontainers.image.authors="Foster Hangdaan <foster@hangdaan.email>" |
LABEL org.opencontainers.image.url="https://code.fosterhangdaan.com/foster/arch-packaging-container/src/branch/trunk/README.org" |
LABEL org.opencontainers.image.documentation="https://code.fosterhangdaan.com/foster/arch-packaging-container/wiki" |
LABEL org.opencontainers.image.source="https://code.fosterhangdaan.com/foster/arch-packaging-container" |
LABEL org.opencontainers.image.licenses="GPL-3.0-or-later" |
/bin/sh -c set -ex && pacman -Sy && useradd --create-home builder && echo "builder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builder && echo "BUILDDIR=/build/app/" >> /home/builder/.makepkg.conf && echo "PKGDEST=/build/packages/" >> /home/builder/.makepkg.conf && echo "SRCDEST=/build/sources/" >> /home/builder/.makepkg.conf && echo "SRCPKGDEST=/build/srcpackages/" >> /home/builder/.makepkg.conf && echo "LOGDEST=/build/logs/" >> /home/builder/.makepkg.conf && mkdir -p /pkg /build && chown -R builder:builder /build |
USER builder |
WORKDIR /pkg |
VOLUME ["/pkg", "/build"] |
ENTRYPOINT ["/usr/bin/makepkg"] |
CMD ["--syncdeps", "--noconfirm"] |