Skip to content

Commit 6cd9311

Browse files
committed
update artifact paths
1 parent f1c46ff commit 6cd9311

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1
22

33
## Buildstage ##
4-
FROM ghcr.io/linuxserver/baseimage-alpine:3.20 AS buildstage
4+
FROM ghcr.io/linuxserver/baseimage-alpine:3.22 AS buildstage
55

66
ARG MOD_VERSION
77

@@ -13,13 +13,17 @@ RUN \
1313
| jq -r '.tag_name'); \
1414
fi && \
1515
if [ "$(uname -m)" == "x86_64" ]; then \
16-
curl -o \
16+
if ! curl -fo /root-layer/calibre.txz -L "https://github.com/kovidgoyal/calibre/releases/download/${MOD_VERSION}/calibre-${MOD_VERSION:1}-x86_64.txz"; then \
17+
curl -fo \
1718
/root-layer/calibre.txz -L \
1819
"https://download.calibre-ebook.com/${MOD_VERSION:1}/calibre-${MOD_VERSION:1}-x86_64.txz"; \
20+
fi; \
1921
elif [ "$(uname -m)" == "aarch64" ]; then \
20-
curl -o \
22+
if ! curl -fo /root-layer/calibre.txz -L "https://github.com/kovidgoyal/calibre/releases/download/${MOD_VERSION}/calibre-${MOD_VERSION:1}-arm64.txz"; then \
23+
curl -fo \
2124
/root-layer/calibre.txz -L \
2225
"https://download.calibre-ebook.com/${MOD_VERSION:1}/calibre-${MOD_VERSION:1}-arm64.txz"; \
26+
fi; \
2327
fi && \
2428
echo $MOD_VERSION > /root-layer/CALIBRE_RELEASE
2529

0 commit comments

Comments
 (0)