mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-30 03:53:18 -04:00
Bundle binaries at buildtime
This commit is contained in:
+10
-1
@@ -1,7 +1,7 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
## Buildstage ##
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 AS buildstage
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.20 AS buildstage
|
||||
|
||||
ARG MOD_VERSION
|
||||
|
||||
@@ -12,6 +12,15 @@ RUN \
|
||||
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
||||
| jq -r '.tag_name'); \
|
||||
fi && \
|
||||
if [ "$(uname -m)" == "x86_64" ]; then \
|
||||
curl -o \
|
||||
/root-layer/calibre.txz -L \
|
||||
"https://download.calibre-ebook.com/${MOD_VERSION:1}/calibre-${MOD_VERSION:1}-x86_64.txz"; \
|
||||
elif [ "$(uname -m)" == "aarch64" ]; then \
|
||||
curl -o \
|
||||
/root-layer/calibre.txz -L \
|
||||
"https://download.calibre-ebook.com/${MOD_VERSION:1}/calibre-${MOD_VERSION:1}-arm64.txz"; \
|
||||
fi && \
|
||||
echo $MOD_VERSION > /root-layer/CALIBRE_RELEASE
|
||||
|
||||
# copy local files
|
||||
|
||||
Reference in New Issue
Block a user