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

32 lines
751 B
Docker
Raw Normal View History

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