From 6cd9dec8ad14059b652269d92c323b2ec03858b9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 6 Apr 2026 18:31:47 +0000 Subject: [PATCH] fix: install calibre at build time to ensure calibredb is available for book downloads The calibre-web addon relies on calibredb to retrieve book metadata for downloads. Previously, calibre was only installed at runtime via DOCKER_MODS (linuxserver/mods:universal-calibre), which could fail due to network issues or changes in the init sequence. Installing calibre at build time ensures calibredb is always available in the container, fixing the 500 Internal Server Error when downloading books. Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/6f6e6795-4a2c-4c6a-88b2-931def081d20 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> --- calibre_web/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calibre_web/Dockerfile b/calibre_web/Dockerfile index b87ebb8b0..9b564feed 100644 --- a/calibre_web/Dockerfile +++ b/calibre_web/Dockerfile @@ -35,6 +35,12 @@ RUN \ && echo '#!/bin/sh' > /usr/bin/xdg-desktop-menu && chmod +x /usr/bin/xdg-desktop-menu \ && echo '#!/bin/sh' > /usr/bin/xdg-mime && chmod +x /usr/bin/xdg-mime +# Install calibre binaries (provides calibredb required for book downloads) +# hadolint ignore=DL4006 +RUN \ + wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin install_dir=/opt/calibre +ENV PATH="/opt/calibre:${PATH}" + # Global LSIO modifications COPY ha_lsio.sh /ha_lsio.sh ARG CONFIGLOCATION="/config"