Skip to content

Commit 3d7b646

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

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

Dockerfile

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ 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 wget xz-utils \
21+
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ] ; then \
22+
apt-get update && apt-get install --no-install-recommends --yes wget xz-utils \
2223
libxcb-xinerama0 \
2324
libxcb-icccm4 \
2425
libxcb-image0 \
@@ -59,7 +60,51 @@ RUN apt-get update && apt-get install --no-install-recommends --yes wget xz-util
5960
strip --remove-section=.note.ABI-tag /opt/calibre/lib/libQt6Core.so.6 \
6061
&& curl -L -o goodreads.zip https://github.com/kiwidude68/calibre_plugins/releases/download/goodreads-v1.8.2/goodreads-v1.8.2.zip \
6162
&& /opt/calibre/calibre-customize --add-plugin goodreads.zip \
62-
&& rm goodreads.zip;
63+
&& rm goodreads.zip; \
64+
else \
65+
apt-get update && apt-get install --no-install-recommends --yes wget xz-utils \
66+
libxcb-xinerama0 \
67+
libxcb-icccm4 \
68+
libxcb-image0 \
69+
libxcb-keysyms1 \
70+
libxcb-render-util0 \
71+
libxcb-randr0 \
72+
libopengl0 \
73+
libegl1 \
74+
libglx0 \
75+
libxkbcommon-x11-0 \
76+
libxcb-cursor0 \
77+
python3-xdg \
78+
binutils \
79+
poppler-utils \
80+
libqpdf29t64 \
81+
libnss3 \
82+
ttf-wqy-zenhei \
83+
fonts-wqy-microhei \
84+
libxcomposite1 \
85+
libxdamage1 \
86+
libxrandr2 \
87+
libxtst6 \
88+
libxkbfile1 \
89+
fcitx-rime && \
90+
apt-get install -y speech-dispatcher \
91+
&& apt-get clean \
92+
&& rm -rf /var/lib/apt/lists/* && \
93+
mkdir -p \
94+
/opt/calibre && \
95+
CALIBRE_VERSION="7.24.0" && \
96+
CALIBRE_URL="https://download.calibre-ebook.com/${CALIBRE_VERSION}/calibre-${CALIBRE_VERSION}-arm64.txz" && \
97+
curl -o \
98+
/tmp/calibre-tarball.txz -L \
99+
"$CALIBRE_URL" && \
100+
tar xvf /tmp/calibre-tarball.txz -C \
101+
/opt/calibre && \
102+
/opt/calibre/calibre_postinstall && \
103+
strip --remove-section=.note.ABI-tag /opt/calibre/lib/libQt6Core.so.6 \
104+
&& curl -L -o goodreads.zip https://github.com/kiwidude68/calibre_plugins/releases/download/goodreads-v1.8.2/goodreads-v1.8.2.zip \
105+
&& /opt/calibre/calibre-customize --add-plugin goodreads.zip \
106+
&& rm goodreads.zip; \
107+
fi
63108

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

0 commit comments

Comments
 (0)