Try the linuxserver image?
This commit is contained in:
parent
e471f00e43
commit
815ca55d1f
68
Dockerfile
68
Dockerfile
@ -1,4 +1,4 @@
|
|||||||
FROM python:3.9-alpine
|
FROM lscr.io/linuxserver/calibre:latest
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
@ -7,7 +7,8 @@ ARG FFF_RELEASE
|
|||||||
LABEL build_version="FFDL-Auto version:- ${VERSION} Calibre: ${CALIBRE_RELEASE} FFF: ${FFF_RELEASE}"
|
LABEL build_version="FFDL-Auto version:- ${VERSION} Calibre: ${CALIBRE_RELEASE} FFF: ${FFF_RELEASE}"
|
||||||
|
|
||||||
ENV PUID="911" \
|
ENV PUID="911" \
|
||||||
PGID="911"
|
PGID="911" \
|
||||||
|
GUIAUTOSTART="false"
|
||||||
|
|
||||||
RUN set -x && \
|
RUN set -x && \
|
||||||
apk update && \
|
apk update && \
|
||||||
@ -23,69 +24,28 @@ RUN set -x && \
|
|||||||
curl \
|
curl \
|
||||||
dbus \
|
dbus \
|
||||||
jq \
|
jq \
|
||||||
python3 \
|
python3.9 \
|
||||||
shadow
|
shadow
|
||||||
|
|
||||||
RUN set -x && \
|
|
||||||
addgroup --gid "$PGID" abc && \
|
|
||||||
adduser \
|
|
||||||
--gecos "" \
|
|
||||||
--disabled-password \
|
|
||||||
--no-create-home \
|
|
||||||
--uid "$PUID" \
|
|
||||||
--ingroup abc \
|
|
||||||
--shell /bin/bash \
|
|
||||||
abc
|
|
||||||
|
|
||||||
RUN echo "**** install calibre ****" && \
|
RUN echo *** Install Packages *** && \
|
||||||
mkdir -p \
|
set -x && \
|
||||||
/opt/calibre && \
|
apt-get install --upgrade py-pillow && \
|
||||||
if [ -z ${CALIBRE_RELEASE+x} ]; then \
|
if [ -z ${FFF_RELEASE+x} ]; then \
|
||||||
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
python3.9 -m pip --no-cache-dir install FanFicFare; \
|
||||||
| jq -r .tag_name); \
|
else \
|
||||||
|
python3.9 -m pip --no-cache-dir install --extra-index-url https://testpypi.python.org/pypi FanFicFare==${FFF_RELEASE}; \
|
||||||
fi && \
|
fi && \
|
||||||
CALIBRE_VERSION="$(echo ${CALIBRE_RELEASE} | cut -c2-)" && \
|
python3.9 -m pip --no-cache-dir install pushbullet.py && \
|
||||||
CALIBRE_URL="https://download.calibre-ebook.com/${CALIBRE_VERSION}/calibre-${CALIBRE_VERSION}-x86_64.txz" && \
|
ln -s /opt/calibre/calibredb /bin/calibredb
|
||||||
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
|
|
||||||
|
|
||||||
RUN echo "**** cleanup ****" && \
|
RUN echo "**** cleanup ****" && \
|
||||||
|
apt-get clean && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
/var/lib/apt/lists/* \
|
/var/lib/apt/lists/* \
|
||||||
/var/tmp/*
|
/var/tmp/*
|
||||||
|
|
||||||
RUN echo "**** s6 omsta;; ****" && \
|
|
||||||
set -ex && \
|
|
||||||
ARCH=`uname -m` && \
|
|
||||||
if [ "$ARCH" = "x86_64" ]; then \
|
|
||||||
s6_package="s6-overlay-amd64.tar.gz" ; \
|
|
||||||
elif [ "$ARCH" = "aarch64" ]; then \
|
|
||||||
s6_package="s6-overlay-aarch64.tar.gz" ; \
|
|
||||||
else \
|
|
||||||
echo "unknown arch: ${ARCH}" && \
|
|
||||||
exit 1 ; \
|
|
||||||
fi && \
|
|
||||||
wget -P /tmp/ https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/${s6_package} && \
|
|
||||||
tar -xzf /tmp/${s6_package} -C / && \
|
|
||||||
rm -rf /tmp/*
|
|
||||||
|
|
||||||
RUN echo *** Install Packages *** && \
|
|
||||||
set -x && \
|
|
||||||
apk add --no-cache --upgrade py-pillow && \
|
|
||||||
if [ -z ${FFF_RELEASE+x} ]; then \
|
|
||||||
python3 -m pip --no-cache-dir install FanFicFare; \
|
|
||||||
else \
|
|
||||||
python3 -m pip --no-cache-dir install --extra-index-url https://testpypi.python.org/pypi FanFicFare==${FFF_RELEASE}; \
|
|
||||||
fi && \
|
|
||||||
python3 -m pip --no-cache-dir install pushbullet.py && \
|
|
||||||
ln -s /opt/calibre/calibredb /bin/calibredb
|
|
||||||
|
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
@ -1 +1 @@
|
|||||||
2022.03.25-26
|
2022.03.25-27
|
||||||
|
Loading…
Reference in New Issue
Block a user