mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-23 02:54:57 +00:00
c154891a17
I (and many others) use qBittorrent's "Run external program on torrent completion", and use unrar to automatically extract files. Adding unrar to the list of installed packets using apt-get, so users can avoid having to manually do it via `docker exec`.
35 lines
923 B
Docker
35 lines
923 B
Docker
# qBittorrent and OpenVPN
|
|
#
|
|
# Version 1.8
|
|
|
|
FROM ubuntu:18.04
|
|
MAINTAINER MarkusMcNugen
|
|
|
|
VOLUME /downloads
|
|
VOLUME /config
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN usermod -u 99 nobody
|
|
|
|
# Update packages and install software
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends apt-utils openssl \
|
|
&& apt-get install -y software-properties-common \
|
|
&& add-apt-repository ppa:qbittorrent-team/qbittorrent-stable \
|
|
&& apt-get update \
|
|
&& apt-get install -y qbittorrent-nox openvpn curl moreutils net-tools dos2unix kmod iptables ipcalc unrar \
|
|
&& 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/*.sh /etc/qbittorrent/*.init /etc/openvpn/*.sh
|
|
|
|
# Expose ports and run
|
|
EXPOSE 8080
|
|
EXPOSE 8999
|
|
EXPOSE 8999/udp
|
|
CMD ["/bin/bash", "/etc/openvpn/start.sh"]
|