FROM reg.cadoles.com/proxy_cache/library/alpine:latest # Packages needed RUN apk update RUN apk add alpine-sdk build-base mtools dosfstools grub-efi apk-tools alpine-conf busybox fakeroot syslinux xorriso squashfs-tools sudo # User setup RUN adduser build -G abuild -D RUN chown build:abuild /home/build -R # Grant unrestricted sudo to abuild group RUN echo "%abuild ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/abuild USER build WORKDIR /home/build RUN abuild-keygen -n -i -a RUN git clone --depth=1 https://gitlab.alpinelinux.org/alpine/aports.git USER root RUN apk update COPY ./scripts/create-iso.sh /usr/bin/create-iso.sh RUN chmod +x /usr/bin/create-iso.sh COPY ./scripts/aports/* /home/build/aports/scripts/ RUN chmod +x /home/build/aports/scripts/*.sh USER build WORKDIR /home/build CMD [ "/usr/bin/create-iso.sh", "ckubeos", "3.16"]