Dockerfile 882 B

1234567891011121314151617181920212223242526272829
  1. FROM docker.snppla.net/snppla/openvpn:1.0
  2. EXPOSE 58846
  3. RUN apt-get update && \
  4. apt-get install -y --no-install-recommends \
  5. software-properties-common \
  6. python3-pip \
  7. python3-setuptools \
  8. git && \
  9. add-apt-repository ppa:deluge-team/stable -y && \
  10. apt-get update && \
  11. apt-get install -y --no-install-recommends deluged && \
  12. rm -rf /var/lib/apt/lists/*
  13. # Build and install the WebAPI plugin against the container's Python 3
  14. RUN git clone https://github.com/idlesign/deluge-webapi.git /tmp/deluge-webapi && \
  15. cd /tmp/deluge-webapi && \
  16. python3 setup.py bdist_egg && \
  17. mkdir -p /config/plugins && \
  18. cp dist/WebAPI-*.egg /config/plugins/ && \
  19. rm -rf /tmp/deluge-webapi
  20. RUN useradd -ms /bin/bash deluge
  21. COPY deluged_init.sh /sbin/deluged_init.sh
  22. RUN chmod +x /sbin/deluged_init.sh
  23. CMD ["/sbin/deluged_init.sh"]