mirror of
https://github.com/linuxserver/docker-calibre.git
synced 2026-02-20 04:42:36 +08:00
68 lines
1.7 KiB
Docker
68 lines
1.7 KiB
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:jammy
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG CALIBRE_RELEASE
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="aptalca"
|
|
|
|
ENV \
|
|
CUSTOM_PORT="8080" \
|
|
GUIAUTOSTART="true" \
|
|
HOME="/config" \
|
|
TITLE="Calibre"
|
|
|
|
RUN \
|
|
echo "**** install runtime packages ****" && \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
dbus \
|
|
fcitx-rime \
|
|
fonts-wqy-microhei \
|
|
libnss3 \
|
|
libopengl0 \
|
|
libqpdf28 \
|
|
libxkbcommon-x11-0 \
|
|
libxcb-icccm4 \
|
|
libxcb-image0 \
|
|
libxcb-keysyms1 \
|
|
libxcb-randr0 \
|
|
libxcb-render-util0 \
|
|
libxcb-xinerama0 \
|
|
poppler-utils \
|
|
python3 \
|
|
python3-xdg \
|
|
ttf-wqy-zenhei \
|
|
wget \
|
|
xz-utils && \
|
|
apt-get install -y \
|
|
speech-dispatcher && \
|
|
echo "**** install calibre ****" && \
|
|
mkdir -p \
|
|
/opt/calibre && \
|
|
if [ -z ${CALIBRE_RELEASE+x} ]; then \
|
|
CALIBRE_RELEASE="4.23.0"; \
|
|
fi && \
|
|
CALIBRE_URL="https://download.calibre-ebook.com/4.23.0/calibre-${CALIBRE_RELEASE}-x86_64.txz" && \
|
|
curl -o \
|
|
/tmp/calibre-tarball.txz -L \
|
|
"$CALIBRE_URL" && \
|
|
tar xvf /tmp/calibre-tarball.txz -C \
|
|
/opt/calibre && \
|
|
/opt/calibre/calibre_postinstall && \
|
|
dbus-uuidgen > /etc/machine-id && \
|
|
sed -i 's|</applications>| <application title="calibre" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
|
|
echo "**** cleanup ****" && \
|
|
apt-get clean && \
|
|
rm -rf \
|
|
/tmp/* \
|
|
/var/lib/apt/lists/* \
|
|
/var/tmp/* \
|
|
/var/log/*
|
|
|
|
# add local files
|
|
COPY root/ /
|