Skip to content

Commit c9d9664

Browse files
committed
fix: try to come back to manual calibre install
1 parent 2fe2bf9 commit c9d9664

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

Dockerfile

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,47 @@ ENV JELU_METADATA_CALIBRE_PATH="/usr/bin/fetch-ebook-metadata"
1818
ENV LC_ALL=en_US.UTF-8
1919
ENV QTWEBENGINE_DISABLE_SANDBOX="1"
2020

21-
RUN apt-get update && apt-get install --no-install-recommends --yes calibre \
21+
RUN apt-get update && apt-get install --no-install-recommends --yes wget xz-utils \
22+
libxcb-xinerama0 \
23+
libxcb-icccm4 \
24+
libxcb-image0 \
25+
libxcb-keysyms1 \
26+
libxcb-render-util0 \
27+
libxcb-randr0 \
28+
libopengl0 \
29+
libegl1 \
30+
libglx0 \
31+
libxkbcommon-x11-0 \
32+
libxcb-cursor0 \
33+
python3-xdg \
34+
binutils \
35+
poppler-utils \
36+
libqpdf29t64 \
37+
libnss3 \
38+
ttf-wqy-zenhei \
39+
fonts-wqy-microhei \
40+
libxcomposite1 \
41+
libxdamage1 \
42+
libxrandr2 \
43+
libxtst6 \
44+
libxkbfile1 \
45+
fcitx-rime && \
46+
apt-get install -y speech-dispatcher \
47+
&& apt-get clean \
48+
&& rm -rf /var/lib/apt/lists/* && \
49+
mkdir -p \
50+
/opt/calibre && \
51+
CALIBRE_VERSION="7.24.0" && \
52+
CALIBRE_URL="https://download.calibre-ebook.com/${CALIBRE_VERSION}/calibre-${CALIBRE_VERSION}-x86_64.txz" && \
53+
curl -o \
54+
/tmp/calibre-tarball.txz -L \
55+
"$CALIBRE_URL" && \
56+
tar xvf /tmp/calibre-tarball.txz -C \
57+
/opt/calibre && \
58+
/opt/calibre/calibre_postinstall && \
59+
strip --remove-section=.note.ABI-tag /opt/calibre/lib/libQt6Core.so.6 \
2260
&& curl -L -o goodreads.zip https://github.com/kiwidude68/calibre_plugins/releases/download/goodreads-v1.8.2/goodreads-v1.8.2.zip \
23-
&& calibre-customize --add-plugin goodreads.zip \
61+
&& /opt/calibre/calibre-customize --add-plugin goodreads.zip \
2462
&& rm goodreads.zip;
2563

2664
ENTRYPOINT ["java", "org.springframework.boot.loader.launch.JarLauncher", "--spring.config.additional-location=optional:file:/config/"]

0 commit comments

Comments
 (0)