mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
Try building for aarch64 too
This commit is contained in:
+27
-4
@@ -1,5 +1,29 @@
|
|||||||
## Buildstage ##
|
## Buildstage ##
|
||||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
|
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage-amd64
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
echo "**** install packages ****" && \
|
||||||
|
apk add -U --update --no-cache --virtual=build-dependencies \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
build-base && \
|
||||||
|
echo "**** install par2cmdline-turbo from source ****" && \
|
||||||
|
mkdir /tmp/par2cmdline && \
|
||||||
|
curl -o \
|
||||||
|
/tmp/par2cmdline.tar.gz -L \
|
||||||
|
"https://github.com/animetosho/par2cmdline-turbo/archive/refs/heads/turbo.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/par2cmdline.tar.gz -C \
|
||||||
|
/tmp/par2cmdline --strip-components=1 && \
|
||||||
|
cd /tmp/par2cmdline && \
|
||||||
|
./automake.sh && \
|
||||||
|
./configure && \
|
||||||
|
make && \
|
||||||
|
make check && \
|
||||||
|
make install DESTDIR=/root-layer
|
||||||
|
|
||||||
|
## Buildstage ##
|
||||||
|
FROM --platform=aarch64 ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.17 as buildstage-aarch64
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install packages ****" && \
|
echo "**** install packages ****" && \
|
||||||
@@ -22,8 +46,6 @@ RUN \
|
|||||||
make check && \
|
make check && \
|
||||||
make install DESTDIR=/root-layer
|
make install DESTDIR=/root-layer
|
||||||
|
|
||||||
# copy local files
|
|
||||||
COPY root/ /root-layer/
|
|
||||||
|
|
||||||
## Single layer deployed image ##
|
## Single layer deployed image ##
|
||||||
FROM scratch
|
FROM scratch
|
||||||
@@ -31,4 +53,5 @@ FROM scratch
|
|||||||
LABEL maintainer="thespad"
|
LABEL maintainer="thespad"
|
||||||
|
|
||||||
# Add files from buildstage
|
# Add files from buildstage
|
||||||
COPY --from=buildstage /root-layer/ /
|
COPY --from=buildstage-amd64 /root-layer/ /amd64
|
||||||
|
COPY --from=buildstage-aarch64 /root-layer/ /aarch64
|
||||||
|
|||||||
Reference in New Issue
Block a user