Dockerfile fix?
This commit is contained in:
parent
833ad9df39
commit
5a09dea983
31
Dockerfile
31
Dockerfile
@ -38,21 +38,22 @@ RUN mkdir -p /opt/calibre && \
|
||||
python3
|
||||
|
||||
RUN echo "**** install calibre ****" && \
|
||||
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 && \
|
||||
/opt/calibre/calibre_postinstall && \
|
||||
dbus-uuidgen > /etc/machine-id
|
||||
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 && \
|
||||
ls /opt/calibre && \
|
||||
/opt/calibre/calibre_postinstall && \
|
||||
dbus-uuidgen > /etc/machine-id
|
||||
|
||||
RUN echo "**** cleanup ****" && \
|
||||
apt-get clean && \
|
||||
|
@ -1 +1 @@
|
||||
v2022.03.25-2
|
||||
v2022.03.25-3
|
||||
|
Loading…
Reference in New Issue
Block a user