-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 769 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 769 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
ARG ALPINE_VERSION=latest
ARG BINFMT_IMAGE=tonistiigi/binfmt:latest
FROM ${BINFMT_IMAGE} AS binfmt
FROM alpine:${ALPINE_VERSION}
RUN apk add alpine-sdk build-base apk-tools alpine-conf busybox \
fakeroot xorriso squashfs-tools sudo \
mtools dosfstools grub-efi
# syslinux is missing for aarch64
ARG TARGETARCH
RUN if [ "${TARGETARCH}" = "amd64" ]; then apk add syslinux; fi
COPY --from=binfmt /usr/bin /binfmt
RUN addgroup root abuild
RUN abuild-keygen -i -a -n
RUN apk update
ADD src/aports /home/build/aports
# Remove --no-chown which is deprecated in apk 3.0 as alias for --usermode (disallowed as root)
RUN sed -i 's/--initdb --no-chown/--initdb/' /home/build/aports/scripts/mkimage.sh
WORKDIR /home/build/aports/scripts
ENTRYPOINT ["sh", "./mkimage.sh"]