@@ -18,7 +18,8 @@ ENV JELU_METADATA_CALIBRE_PATH="/usr/bin/fetch-ebook-metadata"
18
18
ENV LC_ALL=en_US.UTF-8
19
19
ENV QTWEBENGINE_DISABLE_SANDBOX="1"
20
20
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 \
22
23
libxcb-xinerama0 \
23
24
libxcb-icccm4 \
24
25
libxcb-image0 \
@@ -59,7 +60,51 @@ RUN apt-get update && apt-get install --no-install-recommends --yes wget xz-util
59
60
strip --remove-section=.note.ABI-tag /opt/calibre/lib/libQt6Core.so.6 \
60
61
&& curl -L -o goodreads.zip https://github.com/kiwidude68/calibre_plugins/releases/download/goodreads-v1.8.2/goodreads-v1.8.2.zip \
61
62
&& /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
63
108
64
109
ENTRYPOINT ["java" , "org.springframework.boot.loader.launch.JarLauncher" , "--spring.config.additional-location=optional:file:/config/" ]
65
110
EXPOSE 11111
0 commit comments