From 228e02accb0ea17d1ed0c5615efe7b2d7e8e98c7 Mon Sep 17 00:00:00 2001 From: MrTyton Date: Sat, 26 Mar 2022 08:34:42 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99c913b..6b99f43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,24 +38,12 @@ RUN set -x && \ RUN echo "**** install calibre ****" && \ set -x && \ - mkdir -p \ - /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 && \ + apt-get install calibre && \ dbus-uuidgen > /etc/machine-id RUN echo "**** cleanup ****" && \ rm -rf \ - /tmp/* + /tmp/* \ /var/lib/apt/lists/* \ /var/tmp/*