1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-10 04:07:04 +02:00
dockerfiles/aria2/Dockerfile

38 lines
833 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>
2015-06-11 12:23:58 +02:00
ENV DIR /home/aria2
2015-06-10 16:30:49 +02:00
ENV ETC /etc/aria2
2015-06-10 18:19:01 +02:00
ENV CRT $ETC/server.crt
ENV KEY $ETC/server.key
2015-06-10 16:30:49 +02:00
ENV TOKEN 00000000-0000-0000-0000-000000000000
ENV PORT 6800
RUN apt-get update \
2015-06-10 18:19:01 +02:00
&& apt-get install -y aria2 \
2015-06-11 12:23:58 +02:00
&& rm -rf /var/lib/apt/lists/*
RUN useradd aria2 \
&& mkdir -p $ETC $DIR \
&& chown aria2:aria2 $DIR
2015-06-10 16:30:49 +02:00
EXPOSE $PORT
VOLUME $DIR $ETC
2015-06-11 12:23:58 +02:00
USER aria2
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-10 16:30:49 +02:00
--rpc-listen-port=${PORT} \
--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} \
--dir=${DIR}