2018-02-03 01:39:30 -05:00
|
|
|
# qBittorrent and OpenVPN
|
2014-11-09 16:23:18 +01:00
|
|
|
#
|
2018-02-03 01:39:30 -05:00
|
|
|
# Version 1.0
|
2014-11-09 16:23:18 +01:00
|
|
|
|
2018-02-02 02:54:32 -05:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
MAINTAINER MarkusMcNugen
|
2014-11-09 16:23:18 +01:00
|
|
|
|
2018-02-02 03:56:16 -05:00
|
|
|
VOLUME /downloads
|
2015-05-24 19:05:05 +02:00
|
|
|
VOLUME /config
|
2014-11-09 16:23:18 +01:00
|
|
|
|
2018-02-03 01:39:13 -05:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2014-11-09 19:52:52 +01:00
|
|
|
# Update packages and install software
|
2015-05-09 12:49:07 -07:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get -y install software-properties-common \
|
2018-02-03 02:39:28 -05:00
|
|
|
&& apt-get install -y qbittorrent-nox openvpn curl moreutils net-tools dos2unix kmod iptables \
|
2018-02-03 00:33:35 -05:00
|
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2014-11-16 14:19:56 +01:00
|
|
|
|
2014-11-09 19:52:52 +01:00
|
|
|
# Add configuration and scripts
|
2015-08-07 23:07:55 +02:00
|
|
|
ADD openvpn/ /etc/openvpn/
|
2018-02-02 19:56:08 -05:00
|
|
|
ADD qbittorrent/ /etc/qbittorrent/
|
2014-11-09 16:23:18 +01:00
|
|
|
|
2018-02-03 00:45:48 -05:00
|
|
|
RUN chmod +x /etc/qbittorrent/start.sh /etc/qbittorrent/iptables.sh /etc/openvpn/start.sh
|
2018-02-03 00:26:50 -05:00
|
|
|
|
2015-08-07 23:07:55 +02:00
|
|
|
ENV OPENVPN_USERNAME=**None** \
|
|
|
|
OPENVPN_PASSWORD=**None** \
|
2016-02-24 22:23:51 -05:00
|
|
|
OPENVPN_PROVIDER=**None**
|
2015-05-09 12:49:07 -07:00
|
|
|
|
2018-02-02 21:55:43 -05:00
|
|
|
# Expose ports and run
|
2018-02-02 02:54:32 -05:00
|
|
|
EXPOSE 8080
|
2018-02-02 21:55:43 -05:00
|
|
|
EXPOSE 8999
|
|
|
|
EXPOSE 8999/udp
|
2018-02-03 00:37:37 -05:00
|
|
|
CMD ["/bin/bash", "/etc/openvpn/start.sh"]
|