mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
Initial commit
This commit is contained in:
+36
-2
@@ -1,4 +1,38 @@
|
||||
FROM scratch
|
||||
## Buildstage ##
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:focal as buildstage
|
||||
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG CALIBRE_RELEASE
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="chbmb"
|
||||
|
||||
RUN \
|
||||
echo "**** Install packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
xz-utils && \
|
||||
echo "**** Fetch calibre bin ****" && \
|
||||
if [ -z ${CALIBRE_RELEASE+x} ]; then \
|
||||
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
fi && \
|
||||
CALIBRE_RELEASE=$(echo "${CALIBRE_RELEASE}" | sed 's/^v//g' ) && \
|
||||
mkdir -p \
|
||||
/root-layer/app/calibre && \
|
||||
curl -o \
|
||||
/tmp/calibre.txz -L \
|
||||
"https://download.calibre-ebook.com/${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE}-x86_64.txz" && \
|
||||
tar xf \
|
||||
/tmp/calibre.txz \
|
||||
-C /root-layer/app/calibre
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
COPY root/ /root-layer/
|
||||
|
||||
## Single layer deployed image ##
|
||||
FROM scratch
|
||||
|
||||
# Add files from buildstage
|
||||
COPY --from=buildstage /root-layer/ /
|
||||
|
||||
Reference in New Issue
Block a user