2022-05-27 00:25:52 +03:00
|
|
|
FROM epicmorg/debian:bookworm
|
2019-11-20 03:21:11 +03:00
|
|
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# ARGuments
|
|
|
|
##################################################################
|
2022-05-30 16:03:13 +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
|
2023-12-26 03:39:19 +03:00
|
|
|
ENV QBT_VERSION=4.6.2
|
|
|
|
ENV QBT_LIBTORRENT_VERSION=2.0.9
|
|
|
|
ENV QBT_URL=https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-${QBT_VERSION}_v${QBT_LIBTORRENT_VERSION}/x86_64-qbittorrent-nox
|
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 install
|
|
|
|
##################################################################
|
2023-12-26 03:39:19 +03:00
|
|
|
RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue ${QBT_URL} -O /usr/bin/qbittorrent-nox && \
|
|
|
|
chmod +x /usr/bin/qbittorrent-nox && \
|
|
|
|
qbittorrent-nox --version
|
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:03:13 +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"]
|