2018-02-03 06:39:30 +00:00
|
|
|
# qBittorrent and OpenVPN
|
2014-11-09 15:23:18 +00:00
|
|
|
#
|
2018-02-06 06:35:55 +00:00
|
|
|
# Version 1.8
|
2014-11-09 15:23:18 +00:00
|
|
|
|
2024-12-05 21:52:35 +00:00
|
|
|
FROM ubuntu:24.10
|
|
|
|
MAINTAINER Brett
|
2014-11-09 15:23:18 +00:00
|
|
|
|
2018-02-02 08:56:16 +00:00
|
|
|
VOLUME /downloads
|
2015-05-24 17:05:05 +00:00
|
|
|
VOLUME /config
|
2014-11-09 15:23:18 +00:00
|
|
|
|
2018-02-03 06:39:13 +00:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2018-02-04 03:56:02 +00:00
|
|
|
RUN usermod -u 99 nobody
|
|
|
|
|
2014-11-09 18:52:52 +00:00
|
|
|
# Update packages and install software
|
2015-05-09 19:49:07 +00:00
|
|
|
RUN apt-get update \
|
2018-04-16 09:55:59 +00:00
|
|
|
&& apt-get install -y --no-install-recommends apt-utils openssl \
|
2024-12-05 21:52:35 +00:00
|
|
|
&& apt-get install -y software-properties-common iproute2 \
|
2018-02-03 11:51:01 +00:00
|
|
|
&& add-apt-repository ppa:qbittorrent-team/qbittorrent-stable \
|
2018-02-03 11:49:55 +00:00
|
|
|
&& apt-get update \
|
2018-07-19 17:15:55 +00:00
|
|
|
&& apt-get install -y qbittorrent-nox openvpn curl moreutils net-tools dos2unix kmod iptables ipcalc unrar \
|
2018-02-03 05:33:35 +00:00
|
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2014-11-16 13:19:56 +00:00
|
|
|
|
2014-11-09 18:52:52 +00:00
|
|
|
# Add configuration and scripts
|
2015-08-07 21:07:55 +00:00
|
|
|
ADD openvpn/ /etc/openvpn/
|
2018-02-03 00:56:08 +00:00
|
|
|
ADD qbittorrent/ /etc/qbittorrent/
|
2014-11-09 15:23:18 +00:00
|
|
|
|
2018-02-04 03:45:22 +00:00
|
|
|
RUN chmod +x /etc/qbittorrent/*.sh /etc/qbittorrent/*.init /etc/openvpn/*.sh
|
2018-02-03 05:26:50 +00:00
|
|
|
|
2018-02-03 02:55:43 +00:00
|
|
|
# Expose ports and run
|
2018-02-02 07:54:32 +00:00
|
|
|
EXPOSE 8080
|
2018-02-03 02:55:43 +00:00
|
|
|
EXPOSE 8999
|
|
|
|
EXPOSE 8999/udp
|
2018-02-03 05:37:37 +00:00
|
|
|
CMD ["/bin/bash", "/etc/openvpn/start.sh"]
|