feat(docker): moving builder to docker
This commit is contained in:
33
Dockerfile
Normal file
33
Dockerfile
Normal file
@ -0,0 +1,33 @@
|
||||
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"]
|
||||
|
Reference in New Issue
Block a user