Update Dockerfile

This commit is contained in:
MrTyton 2022-03-26 08:34:42 -04:00
parent 5df06d8818
commit 228e02accb

View File

@ -38,24 +38,12 @@ RUN set -x && \
RUN echo "**** install calibre ****" && \ RUN echo "**** install calibre ****" && \
set -x && \ set -x && \
mkdir -p \ apt-get install calibre && \
/opt/calibre && \
if [ -z ${CALIBRE_RELEASE+x} ]; then \
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
| jq -r .tag_name); \
fi && \
CALIBRE_VERSION="$(echo ${CALIBRE_RELEASE} | cut -c2-)" && \
CALIBRE_URL="https://download.calibre-ebook.com/${CALIBRE_VERSION}/calibre-${CALIBRE_VERSION}-x86_64.txz" && \
curl -o \
/tmp/calibre-tarball.txz -L \
"$CALIBRE_URL" && \
tar xvf /tmp/calibre-tarball.txz -C \
/opt/calibre && \
dbus-uuidgen > /etc/machine-id dbus-uuidgen > /etc/machine-id
RUN echo "**** cleanup ****" && \ RUN echo "**** cleanup ****" && \
rm -rf \ rm -rf \
/tmp/* /tmp/* \
/var/lib/apt/lists/* \ /var/lib/apt/lists/* \
/var/tmp/* /var/tmp/*