1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:16:44 +02:00
dockerfiles/aria2/Dockerfile

31 lines
885 B
Docker
Raw Normal View History

2015-06-10 22:30:49 +08:00
#
# Dockerfile for aria2
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update \
2015-06-11 18:59:12 +08:00
&& apt-get install -y aria2 sudo \
2015-06-11 18:47:35 +08:00
&& rm -rf /var/lib/apt/lists/* \
&& useradd -m aria2
2015-06-10 22:30:49 +08:00
2015-06-11 18:47:35 +08:00
ENV CRT /etc/aria2/server.crt
ENV KEY /etc/aria2/server.key
ENV TOKEN 00000000-0000-0000-0000-000000000000
2015-06-10 22:30:49 +08:00
2015-06-11 18:47:35 +08:00
EXPOSE 6800
VOLUME /home/aria2 /etc/aria2
2015-06-11 18:59:12 +08:00
CMD sudo -u aria2 aria2c --disable-ipv6 \
--enable-rpc \
--rpc-listen-all \
--rpc-listen-port=6800 \
--rpc-allow-origin-all \
--rpc-secure \
--rpc-certificate=${CRT} \
--rpc-private-key=${KEY} \
--rpc-secret=${TOKEN} \
--dir=/home/aria2
2015-06-10 22:30:49 +08:00