From 970f06ce7d8ad0bd2bc917d5735e4d5b24edb478 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 2 Oct 2016 23:32:23 -0700 Subject: [PATCH 1/2] Add volume declaration and split launch command to entrypoint declaration. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ca681a4..cbc0085 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,5 +25,8 @@ RUN GITHUB_REPO="https://github.com/mattn/goreman" \ # goreman setup RUN echo "web: gosu dummy /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu dummy /usr/bin/aria2c --enable-rpc --rpc-listen-all --dir=/data" > Procfile +VOLUME /data EXPOSE 8080 6800 -CMD ["goreman", "start"] + +CMD ["start"] +ENTRYPOINT ["/usr/local/bin/goreman"] From 22ca1a2cbc5c49fb511b2f60efaa5d0e71dfad22 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 7 Oct 2016 21:16:27 -0700 Subject: [PATCH 2/2] Update Dockerfile again, separating the EXPOSE directives, adding tcp, and commenting them. --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cbc0085..8418659 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,8 +25,14 @@ RUN GITHUB_REPO="https://github.com/mattn/goreman" \ # goreman setup RUN echo "web: gosu dummy /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu dummy /usr/bin/aria2c --enable-rpc --rpc-listen-all --dir=/data" > Procfile +# aria2 downloads directory VOLUME /data -EXPOSE 8080 6800 + +# aria2 RPC port, map as-is or reconfigure webui +EXPOSE 6800/tcp + +# webui static content web server, map wherever is convenient +EXPOSE 8080/tcp CMD ["start"] ENTRYPOINT ["/usr/local/bin/goreman"]