mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-06 22:26:24 +02:00
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>
This commit is contained in:
committed by
GitHub
parent
9768083c6b
commit
6cd9dec8ad
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user