mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-17 16:35:47 -04:00
Pull fixed version of calibre based on build time
This commit is contained in:
@@ -8,6 +8,13 @@ ARG DEBIAN_FRONTEND="noninteractive"
|
|||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="chbmb"
|
LABEL maintainer="chbmb"
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
mkdir -p \
|
||||||
|
/root-layer && \
|
||||||
|
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
||||||
|
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's/^v//g') && \
|
||||||
|
echo $CALIBRE_RELEASE > /root-layer/CALIBRE_RELEASE
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /root-layer/
|
COPY root/ /root-layer/
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ fi
|
|||||||
|
|
||||||
export DEBIAN_FRONTEND="noninteractive"
|
export DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
|
CALIBRE_RELEASE="$(cat /CALIBRE_RELEASE)"
|
||||||
PACKAGES+=("xz-utils")
|
PACKAGES+=("xz-utils")
|
||||||
|
|
||||||
if [ ! -L /usr/lib/x86_64-linux-gnu/libGL.so.1 ]; then
|
if [ ! -L /usr/lib/x86_64-linux-gnu/libGL.so.1 ]; then
|
||||||
@@ -60,11 +61,9 @@ fi
|
|||||||
echo "**** Fetching calibre bin ****"
|
echo "**** Fetching calibre bin ****"
|
||||||
if [ -z ${CALIBRE_RELEASE+x} ]; then
|
if [ -z ${CALIBRE_RELEASE+x} ]; then
|
||||||
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's/^v//g'); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CALIBRE_RELEASE=$(echo "${CALIBRE_RELEASE}" | sed 's/^v//g' )
|
|
||||||
|
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/app/calibre
|
/app/calibre
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user