-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 874 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 874 Bytes
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:edge
ENV ISO_ARCH x86_64
ENV ISO_REPOSITORY http://dl-cdn.alpinelinux.org/alpine/v3.17/main
ENV ISO_TAG 3.17
RUN apk update
RUN apk add alpine-conf alpine-sdk apk-tools build-base busybox dosfstools fakeroot grub-efi squashfs-tools shadow \
sudo syslinux xorriso
# The user building the ISO has to be part of the 'abuild' group and because we're in Docker things are a lot easier if
# we run as root, so we need to set a root password, unlock the user, and add it to the group. We also need to run
# abuild-keygen through sudo in order for it to pick up root's new group membership.
RUN usermod -p `mkpasswd password` root
RUN usermod -U -G abuild root
RUN sudo -s echo "" | abuild-keygen -i -a
RUN git clone git://git.alpinelinux.org/aports
COPY container/aports/scripts/* /aports/scripts/
VOLUME /iso
WORKDIR /aports/scripts
CMD ["sh","./build.sh"]