You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #FROM lsiobase/mono:xenial
  2. FROM ubuntu:16.04
  3. MAINTAINER Craig Richardson
  4. VOLUME /data
  5. VOLUME /config
  6. # Update packages and install software
  7. RUN apt-get update \
  8. && apt-get -y upgrade \
  9. && apt-get -y install software-properties-common wget git \
  10. && echo "***** add deluge repository *****" \
  11. && add-apt-repository -y ppa:deluge-team/ppa \
  12. && echo "***** add openvpn repository *****" \
  13. && wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - \
  14. && echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list \
  15. && apt-get update \
  16. && apt-get install -qy sudo deluged=1.3.15-1~xenial~ppa3 deluge-web=1.3.15-1~xenial~ppa3 curl rar \
  17. unrar zip unzip ufw iputils-ping openvpn bc python2.7 python2.7-pysqlite2 \
  18. && ln -sf /usr/bin/python2.7 /usr/bin/python2 \
  19. && apt-get install -y tinyproxy telnet \
  20. && wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb \
  21. && dpkg -i dumb-init_1.2.0_amd64.deb \
  22. && rm -rf dumb-init_1.2.0_amd64.deb \
  23. && echo "***** install dockerize *****" \
  24. && curl -L https://github.com/jwilder/dockerize/releases/download/v0.5.0/dockerize-linux-amd64-v0.5.0.tar.gz | tar -C /usr/local/bin -xzv \
  25. && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
  26. && groupmod -g 1000 users \
  27. && useradd -u 911 -U -d /config -s /bin/false abc \
  28. && usermod -G users abc
  29. ADD openvpn/ /etc/openvpn/
  30. ADD deluge/ /etc/deluge/
  31. ADD tinyproxy/ /opt/tinyproxy/
  32. ENV OPENVPN_USERNAME=**None** \
  33. OPENVPN_PASSWORD=**None** \
  34. OPENVPN_PROVIDER=**None** \
  35. DELUGE_PASSWORD=password \
  36. DELUGE_USERNAME=username \
  37. DELUGE_PEER_PORT=51413 \
  38. DELUGE_PEER_PORT_RANDOM_HIGH=65535 \
  39. DELUGE_PEER_PORT_RANDOM_LOW=49152 \
  40. DELUGE_PEER_PORT_RANDOM_ON_START=false \
  41. DELUGE_RPC_PASSWORD=password \
  42. DELUGE_DOWNLOAD_DIR=/download/torrents/complete \
  43. DELUGE_INCOMPLETE_DIR=/download/torrents/incomplete \
  44. DELUGE_WATCH_DIR=/download/torrents/torrents-watch \
  45. DELUGE_HOME=/config \
  46. DELUGE_RPC_PORT=9091 \
  47. ENABLE_UFW=false \
  48. UFW_ALLOW_GW_NET=false \
  49. UFW_EXTRA_PORTS= \
  50. PUID= \
  51. PGID= \
  52. DROP_DEFAULT_ROUTE= \
  53. WEBPROXY_ENABLED=false \
  54. WEBPROXY_PORT=8888
  55. VOLUME ["/data"]
  56. # Torrent port
  57. #EXPOSE 53160
  58. #EXPOSE 53160/udp
  59. # WebUI
  60. EXPOSE 8112
  61. # Daemon
  62. #EXPOSE 58846
  63. # tinyproxy
  64. EXPOSE 8888
  65. CMD ["dumb-init", "/etc/openvpn/start.sh"]
  66. #CMD ["/etc/openvpn/start.sh"]