1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
This commit is contained in:
kev 2015-06-11 18:59:12 +08:00
parent f621e658c3
commit c6ca58926f

@ -6,7 +6,7 @@ FROM debian:jessie
MAINTAINER kev <noreply@datageek.info> MAINTAINER kev <noreply@datageek.info>
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y aria2 \ && apt-get install -y aria2 sudo \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& useradd -m aria2 && useradd -m aria2
@ -16,16 +16,15 @@ ENV TOKEN 00000000-0000-0000-0000-000000000000
EXPOSE 6800 EXPOSE 6800
VOLUME /home/aria2 /etc/aria2 VOLUME /home/aria2 /etc/aria2
USER aria2
CMD aria2c --disable-ipv6 \ CMD sudo -u aria2 aria2c --disable-ipv6 \
--enable-rpc \ --enable-rpc \
--rpc-listen-all \ --rpc-listen-all \
--rpc-listen-port=6800 \ --rpc-listen-port=6800 \
--rpc-allow-origin-all \ --rpc-allow-origin-all \
--rpc-secure \ --rpc-secure \
--rpc-certificate=${CRT} \ --rpc-certificate=${CRT} \
--rpc-private-key=${KEY} \ --rpc-private-key=${KEY} \
--rpc-secret=${TOKEN} \ --rpc-secret=${TOKEN} \
--dir=/home/aria2 --dir=/home/aria2