1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00

add aria2

This commit is contained in:
kev 2015-06-10 22:30:49 +08:00
parent 03afb54aa1
commit df4834d8f0
2 changed files with 36 additions and 0 deletions

35
aria2/Dockerfile Normal file
View File

@ -0,0 +1,35 @@
#
# Dockerfile for aria2
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
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}

1
aria2/README.md Normal file
View File

@ -0,0 +1 @@
`aria2` is a utility for downloading files.