mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-12-27 19:41:40 +00:00
46 lines
1.3 KiB
Docker
46 lines
1.3 KiB
Docker
# Transmission and OpenVPN
|
|
#
|
|
# Version 0.9
|
|
|
|
FROM ubuntu:14.04
|
|
MAINTAINER Kristian Haugene
|
|
|
|
VOLUME /data
|
|
|
|
# Update package sources list
|
|
RUN apt-get update
|
|
|
|
# Add transmission ppa repository for latest releases
|
|
RUN apt-get -y install software-properties-common
|
|
RUN add-apt-repository ppa:transmissionbt/ppa
|
|
|
|
# Update packages and install software
|
|
RUN apt-get update
|
|
RUN apt-get install -y transmission-cli
|
|
RUN apt-get install -y transmission-common
|
|
RUN apt-get install -y transmission-daemon
|
|
RUN apt-get install -y supervisor
|
|
RUN apt-get install -y openvpn
|
|
RUN apt-get install -y curl
|
|
RUN apt-get install -y screen
|
|
|
|
# Create directories
|
|
RUN mkdir -p /var/log/supervisor
|
|
|
|
# Screen directory needs permission 777 to run
|
|
chmod 777 /var/run/screen
|
|
|
|
# Add configuration and scripts
|
|
ADD piaconfig/config.ovpn /etc/openvpn/config.ovpn
|
|
ADD piaconfig/credentials.txt /etc/openvpn/credentials.txt
|
|
ADD piaconfig/ca.crt /etc/openvpn/ca.crt
|
|
ADD piaconfig/crl.pem /etc/openvpn/crl.pem
|
|
ADD startOpenVPN.sh /etc/openvpn/start.sh
|
|
ADD transmissionSettings.json /etc/transmission-daemon/settings.json
|
|
ADD updateTransmissionPort.sh /etc/transmission-daemon/updatePort.sh
|
|
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
# Expose port and run supervisord
|
|
EXPOSE 9091
|
|
CMD ["/usr/bin/supervisord"]
|