Add linux-headers for arm build

This commit is contained in:
TheSpad
2023-03-22 10:54:29 +00:00
parent 1816717f5a
commit 476c425661
+5 -4
View File
@@ -1,5 +1,5 @@
## Buildstage ## ## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage-amd64 FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage-x86_64
RUN \ RUN \
echo "**** install packages ****" && \ echo "**** install packages ****" && \
@@ -30,7 +30,8 @@ RUN \
apk add -U --update --no-cache --virtual=build-dependencies \ apk add -U --update --no-cache --virtual=build-dependencies \
autoconf \ autoconf \
automake \ automake \
build-base && \ build-base \
linux-headers && \
echo "**** install par2cmdline-turbo from source ****" && \ echo "**** install par2cmdline-turbo from source ****" && \
mkdir /tmp/par2cmdline && \ mkdir /tmp/par2cmdline && \
curl -o \ curl -o \
@@ -53,5 +54,5 @@ FROM scratch
LABEL maintainer="thespad" LABEL maintainer="thespad"
# Add files from buildstage # Add files from buildstage
COPY --from=buildstage-amd64 /root-layer/ /tmp/amd64 COPY --from=buildstage-x86_64 /root-layer/ /par2cmdline-turbo/x86_64
COPY --from=buildstage-aarch64 /root-layer/ /tmp/aarch64 COPY --from=buildstage-aarch64 /root-layer/ /par2cmdline-turbo/aarch64