Skip to content

Commit 77b3ae6

Browse files
committed
full build test for branched version of mod
1 parent 6ae9c3f commit 77b3ae6

13 files changed

Lines changed: 104 additions & 843 deletions

File tree

‎Dockerfile‎

Lines changed: 23 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,37 @@
1-
FROM lsiobase/ubuntu:bionic
1+
## Buildstage ##
2+
FROM lsiobase/ubuntu:bionic as buildstage
23

3-
# set version label
44
ARG BUILD_DATE
55
ARG VERSION
6-
ARG CALIBREWEB_RELEASE
6+
ARG CALIBRE_RELEASE
77
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
88
LABEL maintainer="chbmb"
99

1010
RUN \
11-
echo "**** install build packages ****" && \
11+
echo "**** Install packages ****" && \
1212
apt-get update && \
1313
apt-get install -y \
14-
git \
15-
python-pip && \
16-
echo "**** install runtime packages ****" && \
17-
apt-get install -y \
18-
imagemagick \
19-
python-minimal && \
20-
echo "**** install calibre-web ****" && \
21-
if [ -z ${CALIBREWEB_RELEASE+x} ]; then \
22-
CALIBREWEB_RELEASE=$(curl -sX GET "https://api.github.com/repos/janeczku/calibre-web/releases/latest" \
14+
xz-utils && \
15+
echo "**** Fetch calibre bin ****" && \
16+
if [ -z ${CALIBRE_RELEASE+x} ]; then \
17+
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
2318
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
2419
fi && \
25-
curl -o \
26-
/tmp/calibre-web.tar.gz -L \
27-
https://github.com/janeczku/calibre-web/archive/${CALIBREWEB_RELEASE}.tar.gz && \
20+
CALIBRE_RELEASE=$(echo "${CALIBRE_RELEASE}" | sed 's/^v//g' ) && \
2821
mkdir -p \
29-
/app/calibre-web && \
22+
/root-layer/app/calibre && \
23+
curl -o \
24+
/tmp/calibre.txz -L \
25+
"https://github.com/kovidgoyal/calibre/releases/download/v${CALIBRE_RELEASE}/calibre-${CALIBRE_RELEASE}-x86_64.txz" && \
3026
tar xf \
31-
/tmp/calibre-web.tar.gz -C \
32-
/app/calibre-web --strip-components=1 && \
33-
cd /app/calibre-web && \
34-
pip install --no-cache-dir -U -r \
35-
requirements.txt && \
36-
pip install --no-cache-dir -U -r \
37-
optional-requirements.txt && \
38-
echo "**** cleanup ****" && \
39-
apt-get -y purge \
40-
git \
41-
python-pip && \
42-
apt-get -y autoremove && \
43-
rm -rf \
44-
/tmp/* \
45-
/var/lib/apt/lists/* \
46-
/var/tmp/*
47-
48-
# add local files
49-
COPY root/ /
27+
/tmp/calibre.txz \
28+
-C /root-layer/app/calibre
29+
30+
# copy local files
31+
COPY root/ /root-layer/
32+
33+
## Single layer deployed image ##
34+
FROM scratch
5035

51-
# ports and volumes
52-
EXPOSE 8083
53-
VOLUME /books /config
36+
# Add files from buildstage
37+
COPY --from=buildstage /root-layer/ /

‎Dockerfile.aarch64‎

Lines changed: 0 additions & 67 deletions
This file was deleted.

‎Dockerfile.armhf‎

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)