docker-qBittorrentvpn/Dockerfile
2018-02-03 02:39:28 -05:00

34 lines
831 B
Docker

# qBittorrent and OpenVPN
#
# Version 1.0
FROM ubuntu:16.04
MAINTAINER MarkusMcNugen
VOLUME /downloads
VOLUME /config
ENV DEBIAN_FRONTEND noninteractive
# Update packages and install software
RUN apt-get update \
&& apt-get -y install software-properties-common \
&& apt-get install -y qbittorrent-nox openvpn curl moreutils net-tools dos2unix kmod iptables \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add configuration and scripts
ADD openvpn/ /etc/openvpn/
ADD qbittorrent/ /etc/qbittorrent/
RUN chmod +x /etc/qbittorrent/start.sh /etc/qbittorrent/iptables.sh /etc/openvpn/start.sh
ENV OPENVPN_USERNAME=**None** \
OPENVPN_PASSWORD=**None** \
OPENVPN_PROVIDER=**None**
# Expose ports and run
EXPOSE 8080
EXPOSE 8999
EXPOSE 8999/udp
CMD ["/bin/bash", "/etc/openvpn/start.sh"]