-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (19 loc) · 976 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM alpine:latest
RUN echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/community/" | tee -a /etc/apk/repositories
RUN apk update
RUN apk add alpine-sdk build-base apk-tools alpine-conf busybox \
fakeroot syslinux xorriso mtools dosfstools grub-efi make \
git sudo squashfs-tools
RUN adduser -h /home/build -D build -G abuild
RUN echo 'build ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers
RUN git clone https://git.alpinelinux.org/cgit/aports/ /home/build/aports
RUN cd /home/build/aports && apk update
COPY ./scripts/mkimg.kvmhost.sh /home/build/aports/scripts/mkimg.kvmhost.sh
COPY ./scripts/create-image.sh /home/build/aports/scripts/create-image.sh
COPY ./scripts/genapkovl-kvmhost.sh /home/build/aports/scripts/genapkovl-kvmhost.sh
RUN chmod +x /home/build/aports/scripts/mkimg.kvmhost.sh
RUN chmod +x /home/build/aports/scripts/create-image.sh
RUN chmod +x /home/build/aports/scripts/genapkovl-kvmhost.sh
USER build
RUN abuild-keygen -i -a -n
RUN cd ~