docker-scripts/linux/ecosystem/qbittorrent/Dockerfile.stable

61 lines
2.3 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
##################################################################
2022-05-30 16:04:21 +03:00
ENV QBT_DIR=/opt/qbittorrent
ENV QBT_PORT_WEBUI=8282
ENV QBT_PORT_TRACKER=9000
2022-05-30 17:46:30 +03:00
ENV QBT_PORT_NAT=1337
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
##################################################################
2022-05-27 00:25:52 +03:00
#RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D35164147CA69FC4
#COPY qbittorrent-stable.list /etc/apt/sources.list.d/qbittorrent-stable.list
#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
2022-05-30 16:04:21 +03:00
HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:${QBT_PORT_WEBUI}/ || exit 1
2022-03-21 22:05:56 +03:00
# Add image configuration and scripts
COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
RUN chmod 755 /usr/bin/docker-entrypoint.sh
#Final config
2022-05-30 17:46:30 +03:00
EXPOSE ${QBT_PORT_WEBUI} ${QBT_PORT_WEBUI}/udp ${QBT_PORT_NAT} ${QBT_PORT_NAT}/udp ${QBT_PORT_TRACKER} ${QBT_PORT_TRACKER}/udp
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"]