mirror of
https://github.com/linuxserver/docker-calibre-web.git
synced 2026-06-03 09:57:34 +00:00
rebase to jammy, s6v3, clean up deps
This commit is contained in:
+12
-9
@@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@@ -10,22 +10,24 @@ LABEL maintainer="chbmb"
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
git \
|
||||
libldap2-dev \
|
||||
libsasl2-dev \
|
||||
python3-pip && \
|
||||
python3-dev && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apt-get install -y \
|
||||
apt-get install -y --no-install-recommends \
|
||||
imagemagick \
|
||||
libldap-2.5-0 \
|
||||
libnss3 \
|
||||
libsasl2-2 \
|
||||
libxcomposite1 \
|
||||
libxi6 \
|
||||
libxslt1.1 \
|
||||
libldap-2.4-2 \
|
||||
libsasl2-2 \
|
||||
libxrandr2 \
|
||||
libxslt1.1 \
|
||||
python3-minimal \
|
||||
python3-pip \
|
||||
python3-pkg-resources \
|
||||
unrar && \
|
||||
echo "**** install calibre-web ****" && \
|
||||
@@ -43,7 +45,7 @@ RUN \
|
||||
/app/calibre-web --strip-components=1 && \
|
||||
cd /app/calibre-web && \
|
||||
pip3 install --no-cache-dir -U \
|
||||
pip && \
|
||||
pip wheel && \
|
||||
pip install --no-cache-dir -U --ignore-installed --find-links https://wheel-index.linuxserver.io/ubuntu/ -r \
|
||||
requirements.txt -r \
|
||||
optional-requirements.txt && \
|
||||
@@ -57,10 +59,11 @@ RUN \
|
||||
https://github.com/pgaskin/kepubify/releases/download/${KEPUBIFY_RELEASE}/kepubify-linux-64bit && \
|
||||
echo "**** cleanup ****" && \
|
||||
apt-get -y purge \
|
||||
build-essential \
|
||||
git \
|
||||
libldap2-dev \
|
||||
libsasl2-dev \
|
||||
python3-pip && \
|
||||
python3-dev && \
|
||||
apt-get -y autoremove && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
|
||||
+11
-11
@@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-focal
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@@ -10,9 +10,8 @@ LABEL maintainer="chbmb"
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
g++ \
|
||||
gcc \
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
git \
|
||||
libffi-dev \
|
||||
libjpeg-dev \
|
||||
@@ -20,12 +19,13 @@ RUN \
|
||||
libsasl2-dev \
|
||||
libxml2-dev \
|
||||
libxslt1-dev \
|
||||
python3-pip \
|
||||
python3-dev \
|
||||
rustc \
|
||||
zlib1g-dev && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apt-get install -y \
|
||||
apt-get install -y --no-install-recommends \
|
||||
imagemagick \
|
||||
libldap-2.4-2 \
|
||||
libldap-2.5-0 \
|
||||
libnss3 \
|
||||
libsasl2-2 \
|
||||
libxcomposite1 \
|
||||
@@ -33,6 +33,7 @@ RUN \
|
||||
libxrandr2 \
|
||||
libxslt1.1 \
|
||||
python3-minimal \
|
||||
python3-pip \
|
||||
python3-pkg-resources \
|
||||
unrar && \
|
||||
echo "**** install calibre-web ****" && \
|
||||
@@ -50,7 +51,7 @@ RUN \
|
||||
/app/calibre-web --strip-components=1 && \
|
||||
cd /app/calibre-web && \
|
||||
pip3 install --no-cache-dir -U \
|
||||
pip && \
|
||||
pip wheel && \
|
||||
pip install --no-cache-dir -U --ignore-installed --find-links https://wheel-index.linuxserver.io/ubuntu/ -r \
|
||||
requirements.txt -r \
|
||||
optional-requirements.txt && \
|
||||
@@ -64,8 +65,7 @@ RUN \
|
||||
https://github.com/pgaskin/kepubify/releases/download/${KEPUBIFY_RELEASE}/kepubify-linux-arm64 && \
|
||||
echo "**** cleanup ****" && \
|
||||
apt-get -y purge \
|
||||
g++ \
|
||||
gcc \
|
||||
build-essential \
|
||||
git \
|
||||
libffi-dev \
|
||||
libjpeg-dev \
|
||||
@@ -73,7 +73,7 @@ RUN \
|
||||
libsasl2-dev \
|
||||
libxml2-dev \
|
||||
libxslt1-dev \
|
||||
python3-pip \
|
||||
python3-dev \
|
||||
zlib1g-dev && \
|
||||
apt-get -y autoremove && \
|
||||
rm -rf \
|
||||
|
||||
+10
-12
@@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-focal
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-jammy
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@@ -10,9 +10,8 @@ LABEL maintainer="chbmb"
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
g++ \
|
||||
gcc \
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
git \
|
||||
libffi-dev \
|
||||
libjpeg-dev \
|
||||
@@ -21,13 +20,13 @@ RUN \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
libxslt1-dev \
|
||||
python3-pip \
|
||||
python3-dev \
|
||||
rustc \
|
||||
zlib1g-dev && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apt-get install -y \
|
||||
apt-get install -y --no-install-recommends \
|
||||
imagemagick \
|
||||
libldap-2.4-2 \
|
||||
libldap-2.5-0 \
|
||||
libnss3 \
|
||||
libsasl2-2 \
|
||||
libxcomposite1 \
|
||||
@@ -35,6 +34,7 @@ RUN \
|
||||
libxrandr2 \
|
||||
libxslt1.1 \
|
||||
python3-minimal \
|
||||
python3-pip \
|
||||
python3-pkg-resources \
|
||||
unrar && \
|
||||
echo "**** install calibre-web ****" && \
|
||||
@@ -52,7 +52,7 @@ RUN \
|
||||
/app/calibre-web --strip-components=1 && \
|
||||
cd /app/calibre-web && \
|
||||
pip3 install --no-cache-dir -U \
|
||||
pip && \
|
||||
pip wheel && \
|
||||
pip install --no-cache-dir -U --ignore-installed --find-links https://wheel-index.linuxserver.io/ubuntu/ -r \
|
||||
requirements.txt -r \
|
||||
optional-requirements.txt && \
|
||||
@@ -66,8 +66,7 @@ RUN \
|
||||
https://github.com/pgaskin/kepubify/releases/download/${KEPUBIFY_RELEASE}/kepubify-linux-arm && \
|
||||
echo "**** cleanup ****" && \
|
||||
apt-get -y purge \
|
||||
g++ \
|
||||
gcc \
|
||||
build-essential \
|
||||
git \
|
||||
libffi-dev \
|
||||
libjpeg-dev \
|
||||
@@ -76,8 +75,7 @@ RUN \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
libxslt1-dev \
|
||||
python3-pip \
|
||||
rustc \
|
||||
python3-dev \
|
||||
zlib1g-dev && \
|
||||
apt-get -y autoremove && \
|
||||
rm -rf \
|
||||
|
||||
@@ -266,6 +266,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **19.10.22:** - Rebase to jammy. Upgrade to s6v3. Clean up build dependencies.
|
||||
* **04.11.21:** - Update pip arguments to ignore distro installed packages.
|
||||
* **24.06.21:** - Add note on optional OAUTHLIB_RELAX_TOKEN_SCOPE for Google OAUTH support.
|
||||
* **17.05.21:** - Add linuxserver wheel index.
|
||||
|
||||
@@ -79,6 +79,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "19.10.22:", desc: "Rebase to jammy. Upgrade to s6v3. Clean up build dependencies."}
|
||||
- { date: "04.11.21:", desc: "Update pip arguments to ignore distro installed packages."}
|
||||
- { date: "24.06.21:", desc: "Add note on optional OAUTHLIB_RELAX_TOKEN_SCOPE for Google OAUTH support."}
|
||||
- { date: "17.05.21:", desc: "Add linuxserver wheel index."}
|
||||
|
||||
Regular → Executable
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-calibre-web-config/run
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8083" \
|
||||
cd /app/calibre-web s6-setuidgid abc python3 /app/calibre-web/cps.py
|
||||
@@ -0,0 +1 @@
|
||||
longrun
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
cd /app/calibre-web || exit
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc python3 /app/calibre-web/cps.py
|
||||
Reference in New Issue
Block a user