2015-06-10 16:30:49 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for aria2
|
|
|
|
#
|
|
|
|
|
2015-06-18 08:50:27 +02:00
|
|
|
FROM alpine
|
2017-05-08 01:05:07 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
2015-06-10 16:30:49 +02:00
|
|
|
|
2016-03-05 13:52:07 +02:00
|
|
|
ENV TOKEN 00000000-0000-0000-0000-000000000000
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apk add -U aria2 \
|
2015-06-18 08:50:27 +02:00
|
|
|
&& rm -rf /var/cache/apk/* \
|
2017-10-21 15:05:51 +02:00
|
|
|
&& aria2c https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 -o /usr/local/bin/gosu \
|
2015-06-11 13:10:48 +02:00
|
|
|
&& chmod +x /usr/local/bin/gosu \
|
2015-06-18 08:50:27 +02:00
|
|
|
&& adduser -D aria2
|
2015-06-10 16:30:49 +02:00
|
|
|
|
2015-08-04 15:32:50 +02:00
|
|
|
COPY aria2.conf /etc/aria2/
|
|
|
|
VOLUME /home/aria2 /etc/aria2
|
|
|
|
|
2016-03-05 13:52:07 +02:00
|
|
|
EXPOSE 6800
|
|
|
|
CMD set -xe \
|
|
|
|
&& chown -R aria2:aria2 /home/aria2 \
|
2015-08-04 15:32:50 +02:00
|
|
|
&& gosu aria2 aria2c --conf-path=/etc/aria2/aria2.conf \
|
|
|
|
--rpc-secret=${TOKEN}
|