infra-ansible
ansible script to ship alpine/ssh/wireguard
git clone https://9o.is/git/infra-ansible.git
Containerfile.j2
(669B)
1 FROM docker.io/library/alpine:{{ alpine_version }}
2
3 RUN apk update
4 RUN apk add \
5 alpine-sdk \
6 alpine-conf \
7 syslinux \
8 xorriso \
9 squashfs-tools \
10 grub \
11 grub-efi \
12 mtools \
13 dosfstools \
14 doas
15
16 RUN adduser build -u 1000 -s /bin/sh -D -G abuild; \
17 echo "permit nopass :abuild" > /etc/doas.d/doas.conf
18
19 USER build
20 WORKDIR /home/build
21
22 RUN abuild-keygen -a -i -n; \
23 git clone --depth=1 https://gitlab.alpinelinux.org/alpine/aports.git
24
25 COPY mkimg.x.sh aports/scripts
26 COPY genapkovl-mkimgoverlay.sh aports/scripts
27 COPY entrypoint.sh /entrypoint.sh
28
29 VOLUME /iso
30 ENTRYPOINT /entrypoint.sh