2022-03-26 03:27:34 +00:00
|
|
|
FROM lscr.io/linuxserver/calibre:latest
|
2022-03-25 21:21:17 +00:00
|
|
|
|
|
|
|
# set version label
|
|
|
|
ARG VERSION
|
|
|
|
ARG CALIBRE_RELEASE
|
|
|
|
ARG FFF_RELEASE
|
2022-03-25 21:57:33 +00:00
|
|
|
LABEL build_version="FFDL-Auto version:- ${VERSION} Calibre: ${CALIBRE_RELEASE} FFF: ${FFF_RELEASE}"
|
|
|
|
|
2022-03-25 22:28:37 +00:00
|
|
|
ENV PUID="911" \
|
2022-03-26 03:27:34 +00:00
|
|
|
PGID="911" \
|
|
|
|
GUIAUTOSTART="false"
|
2022-03-25 21:21:17 +00:00
|
|
|
|
2022-03-25 22:28:37 +00:00
|
|
|
RUN set -x && \
|
2022-03-26 03:29:16 +00:00
|
|
|
apt-get update && \
|
|
|
|
apt-get install --upgrade \
|
2022-03-25 21:21:17 +00:00
|
|
|
bash \
|
|
|
|
ca-certificates \
|
|
|
|
gcc \
|
|
|
|
mesa-gl \
|
|
|
|
qt5-qtbase-x11 \
|
|
|
|
wget \
|
|
|
|
xdg-utils \
|
|
|
|
xz \
|
|
|
|
curl \
|
|
|
|
dbus \
|
|
|
|
jq \
|
2022-03-26 03:27:34 +00:00
|
|
|
python3.9 \
|
2022-03-26 02:04:47 +00:00
|
|
|
shadow
|
2022-03-25 22:18:04 +00:00
|
|
|
|
2022-03-25 21:21:17 +00:00
|
|
|
|
|
|
|
RUN echo *** Install Packages *** && \
|
2022-03-25 22:28:37 +00:00
|
|
|
set -x && \
|
2022-03-26 03:27:34 +00:00
|
|
|
apt-get install --upgrade py-pillow && \
|
2022-03-25 21:21:17 +00:00
|
|
|
if [ -z ${FFF_RELEASE+x} ]; then \
|
2022-03-26 03:27:34 +00:00
|
|
|
python3.9 -m pip --no-cache-dir install FanFicFare; \
|
2022-03-25 21:21:17 +00:00
|
|
|
else \
|
2022-03-26 03:27:34 +00:00
|
|
|
python3.9 -m pip --no-cache-dir install --extra-index-url https://testpypi.python.org/pypi FanFicFare==${FFF_RELEASE}; \
|
2022-03-25 21:21:17 +00:00
|
|
|
fi && \
|
2022-03-26 03:27:34 +00:00
|
|
|
python3.9 -m pip --no-cache-dir install pushbullet.py && \
|
2022-03-25 21:21:17 +00:00
|
|
|
ln -s /opt/calibre/calibredb /bin/calibredb
|
|
|
|
|
2022-03-26 03:27:34 +00:00
|
|
|
RUN echo "**** cleanup ****" && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf \
|
|
|
|
/tmp/* \
|
|
|
|
/var/lib/apt/lists/* \
|
|
|
|
/var/tmp/*
|
|
|
|
|
2022-03-26 01:42:49 +00:00
|
|
|
COPY root/ /
|
|
|
|
|
2022-03-25 21:21:17 +00:00
|
|
|
VOLUME /config
|
|
|
|
|
|
|
|
WORKDIR /config
|
|
|
|
|
2022-03-26 01:31:03 +00:00
|
|
|
ENTRYPOINT ["/init"]
|