diff --git a/aria2/Dockerfile b/aria2/Dockerfile new file mode 100644 index 0000000..2c46fac --- /dev/null +++ b/aria2/Dockerfile @@ -0,0 +1,35 @@ +# +# Dockerfile for aria2 +# + +FROM debian:jessie +MAINTAINER kev + +ENV DIR /var/lib/aria2 +ENV ETC /etc/aria2 +ENV CERT server-cert.pem +ENV KEY server-key.pem +ENV TOKEN 00000000-0000-0000-0000-000000000000 +ENV PORT 6800 + +RUN apt-get update \ + && apt-get install -y aria2 openssl \ + && rm -rf /var/lib/apt/lists/* \ + && mkdir -p $ETC $DIR \ + && cd $ETC \ + && openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $KEY -out $CERT + +EXPOSE $PORT +VOLUME $DIR $ETC + +CMD aria2c --disable-ipv6 \ + --enable-rpc \ + --rpc-listen-all=false \ + --rpc-listen-port=${PORT} \ + --rpc-allow-origin-all \ + --rpc-secure \ + --rpc-certificate=${CERT} \ + --rpc-private-key=${KEY} \ + --rpc-secret=${TOKEN} \ + --dir=${DIR} + diff --git a/aria2/README.md b/aria2/README.md new file mode 100644 index 0000000..cad35a0 --- /dev/null +++ b/aria2/README.md @@ -0,0 +1 @@ +`aria2` is a utility for downloading files.