docker-scripts/linux/ecosystem/qbittorrent/latest/Dockerfile

58 lines
2.1 KiB
Docker
Raw Normal View History

2022-05-07 03:11:26 +03:00
FROM epicmorg/debian:bullseye
2019-11-20 03:21:11 +03:00
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# ARGuments
##################################################################
2019-11-20 17:31:45 +03:00
ARG QBT_DIR=/opt/qbittorrent
2019-11-20 03:21:11 +03:00
##################################################################
# Files and folders
##################################################################
2019-11-21 02:39:13 +03:00
RUN mkdir -p ${QBT_DIR}
2019-11-20 03:21:11 +03:00
##################################################################
# qBitTorrent sources list
##################################################################
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D35164147CA69FC4
COPY qbittorrent-unstable.list /etc/apt/sources.list.d/qbittorrent-unstable.list
2020-07-17 17:53:53 +03:00
RUN apt autoremove -y && apt purge policykit-1 -y && apt update && apt dist-upgrade -y
2019-11-20 03:21:11 +03:00
############################# ####################################
# qbittorrent install
##################################################################
RUN apt-get update && \
apt install -y --allow-unauthenticated --allow-downgrades \
2019-11-21 02:39:13 +03:00
qbittorrent-nox
2019-11-20 03:21:11 +03:00
##################################################################
# other customisations
##################################################################
2019-11-20 17:31:45 +03:00
2019-11-20 03:21:11 +03:00
##################################################################
# cleaninig up
##################################################################
RUN apt clean -y && \
apt autoclean -y && \
2020-01-17 11:07:22 +03:00
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apt/archives/*.deb && \
rm -rf /builds/* && \
rm -rf /valve/*
2019-11-20 17:31:45 +03:00
VOLUME ${QBT_DIR}
2022-03-21 22:05:56 +03:00
#healthcheck. good practice
HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:8282/ || exit 1
# Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
#Final config
2019-11-21 02:39:13 +03:00
EXPOSE 8282
2019-11-20 17:31:45 +03:00
2022-03-21 22:05:56 +03:00
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
CMD ["docker-entrypoint.sh"]