Update Dockerfile
This commit is contained in:
parent
5df06d8818
commit
228e02accb
16
Dockerfile
16
Dockerfile
@ -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/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user