1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00
dockerfiles/aria2/Dockerfile

33 lines
1022 B
Docker
Raw Normal View History

2015-06-10 14:30:49 +00:00
#
# Dockerfile for aria2
#
2015-06-18 06:50:27 +00:00
FROM alpine
2015-06-10 14:30:49 +00:00
MAINTAINER kev <noreply@datageek.info>
2015-06-18 06:50:27 +00:00
RUN apk add --update aria2 \
&& rm -rf /var/cache/apk/* \
&& aria2 https://github.com/tianon/gosu/releases/download/1.4/gosu-amd64 -o /usr/local/bin/gosu \
2015-06-11 11:10:48 +00:00
&& chmod +x /usr/local/bin/gosu \
2015-06-18 06:50:27 +00:00
&& adduser -D aria2
2015-06-10 14:30:49 +00:00
2015-06-11 10:47:35 +00:00
ENV CRT /etc/aria2/server.crt
ENV KEY /etc/aria2/server.key
ENV TOKEN 00000000-0000-0000-0000-000000000000
2015-06-10 14:30:49 +00:00
2015-06-11 10:47:35 +00:00
EXPOSE 6800
VOLUME /home/aria2 /etc/aria2
2015-06-11 11:10:48 +00:00
CMD chown -R aria2:aria2 /home/aria2 \
&& gosu aria2 aria2c --disable-ipv6 \
2015-06-11 10:59:12 +00:00
--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 14:30:49 +00:00