1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2015-07-09 11:19:40 +08:00
parent 70c2bab8af
commit 50b73145b1

View File

@ -11,22 +11,31 @@ RUN apk add --update aria2 \
&& chmod +x /usr/local/bin/gosu \
&& adduser -D aria2
ENV CRT /etc/aria2/server.crt
ENV KEY /etc/aria2/server.key
ENV TOKEN 00000000-0000-0000-0000-000000000000
ENV CRT /etc/aria2/server.crt
ENV KEY /etc/aria2/server.key
ENV TOKEN 00000000-0000-0000-0000-000000000000
ENV ULIMIT 0
ENV DLIMIT 0
ENV RSEED 1.0
ENV TSEED 0
EXPOSE 6800
VOLUME /home/aria2 /etc/aria2
CMD chown -R aria2:aria2 /home/aria2 \
&& gosu 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} \
CMD chown -R aria2:aria2 /home/aria2 \
&& gosu 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} \
--max-upload-limit=${ULIMIT} \
--max-download-limit=${DLIMIT} \
--seed-ratio=${RSEED} \
--seed-time=${TSEED} \
--dir=/home/aria2