|
|
@@ -2,11 +2,28 @@ FROM docker.snppla.net/snppla/openvpn:1.0
|
|
|
|
|
|
EXPOSE 58846
|
|
|
|
|
|
-RUN apt-get update && apt-get install -y software-properties-common
|
|
|
-RUN add-apt-repository ppa:deluge-team/stable -y
|
|
|
-RUN apt-get update && apt-get install -y deluged
|
|
|
+RUN apt-get update && \
|
|
|
+ apt-get install -y --no-install-recommends \
|
|
|
+ software-properties-common \
|
|
|
+ python3-pip \
|
|
|
+ python3-setuptools \
|
|
|
+ git && \
|
|
|
+ add-apt-repository ppa:deluge-team/stable -y && \
|
|
|
+ apt-get update && \
|
|
|
+ apt-get install -y --no-install-recommends deluged && \
|
|
|
+ rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
-ADD deluged_init.sh /sbin/deluged_init.sh
|
|
|
-RUN chmod +x /sbin/deluged_init.sh && useradd -ms /bin/bash deluge
|
|
|
+# Build and install the WebAPI plugin against the container's Python 3
|
|
|
+RUN git clone https://github.com/idlesign/deluge-webapi.git /tmp/deluge-webapi && \
|
|
|
+ cd /tmp/deluge-webapi && \
|
|
|
+ python3 setup.py bdist_egg && \
|
|
|
+ mkdir -p /config/plugins && \
|
|
|
+ cp dist/WebAPI-*.egg /config/plugins/ && \
|
|
|
+ rm -rf /tmp/deluge-webapi
|
|
|
|
|
|
-CMD /sbin/deluged_init.sh
|
|
|
+RUN useradd -ms /bin/bash deluge
|
|
|
+
|
|
|
+COPY deluged_init.sh /sbin/deluged_init.sh
|
|
|
+RUN chmod +x /sbin/deluged_init.sh
|
|
|
+
|
|
|
+CMD ["/sbin/deluged_init.sh"]
|