FFFRssLinkGrabber/Dockerfile

80 lines
1.9 KiB
Docker
Raw Normal View History

2023-06-06 17:28:10 +00:00
FROM python:3.9-slim
# set version label
ARG VERSION
2023-06-06 18:24:29 +00:00
LABEL build_version="FFFRssLinkGrabber version:- ${VERSION}"
2023-06-06 17:28:10 +00:00
ENV PUID="911" \
PGID="911"
RUN set -x && \
apt-get update && \
apt-get install -y --upgrade \
bash \
ca-certificates \
gcc \
wget \
xdg-utils \
curl \
dbus \
jq \
python3
RUN set -x && \
addgroup --gid "$PGID" abc && \
adduser \
--gecos "" \
--disabled-password \
--no-create-home \
--uid "$PUID" \
--ingroup abc \
--shell /bin/bash \
abc
2023-06-06 18:24:29 +00:00
#RUN echo "**** install calibre ****" && \
# set -x && \
# apt-get install -y calibre && \
# dbus-uuidgen > /etc/machine-id
2023-06-06 17:28:10 +00:00
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 /
RUN echo *** Install Packages *** && \
2023-06-06 18:36:07 +00:00
set -x && \
2023-06-06 18:24:29 +00:00
#if [ -z ${FFF_RELEASE} ]; then \
# echo "FFF Using Default Release"; \
# python3 -m pip --no-cache-dir install FanFicFare; \
#else \
# echo "FF Using ${FFF_RELEASE} Release"; \
# 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 pillow && \
python3 -m pip --no-cache-dir install feedparser && \
#ln -s /opt/calibre/calibredb /bin/calibredb
2023-06-06 17:28:10 +00:00
RUN echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
COPY root/ /
VOLUME /config
WORKDIR /config
ENTRYPOINT ["/init"]