docker-qBittorrentvpn/Dockerfile

35 lines
923 B
Docker
Raw Permalink Normal View History

2018-02-03 06:39:30 +00:00
# qBittorrent and OpenVPN
#
2018-02-06 06:35:55 +00:00
# Version 1.8
2021-03-23 00:59:03 +00:00
FROM ubuntu:20.04
2018-02-02 07:54:32 +00:00
MAINTAINER MarkusMcNugen
2018-02-02 08:56:16 +00:00
VOLUME /downloads
VOLUME /config
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
# Update packages and install software
RUN apt-get update \
2018-04-16 09:55:59 +00:00
&& apt-get install -y --no-install-recommends apt-utils openssl \
2018-02-04 04:06:19 +00:00
&& apt-get install -y software-properties-common \
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 \
&& 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/*
# Add configuration and scripts
ADD openvpn/ /etc/openvpn/
ADD qbittorrent/ /etc/qbittorrent/
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"]