2015-06-10 16:30:49 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for aria2
|
|
|
|
#
|
|
|
|
|
2020-08-14 12:41:35 +02:00
|
|
|
FROM alpine:3
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2015-06-10 16:30:49 +02:00
|
|
|
|
2022-08-08 11:56:44 +02:00
|
|
|
RUN apk add --no-cache aria2
|
2015-06-10 16:30:49 +02:00
|
|
|
|
2022-08-08 11:56:44 +02:00
|
|
|
COPY ./data/etc/aria2.conf /etc/aria2/
|
2022-07-18 08:39:02 +02:00
|
|
|
|
2022-08-08 11:56:44 +02:00
|
|
|
ENV DIR=/data
|
|
|
|
ENV PORT=6800
|
2022-07-18 08:39:02 +02:00
|
|
|
ENV TOKEN=00000000-0000-0000-0000-000000000000
|
|
|
|
|
2022-08-08 11:56:44 +02:00
|
|
|
WORKDIR $DIR
|
|
|
|
EXPOSE ${PORT}
|
|
|
|
|
|
|
|
CMD aria2c --conf-path=/etc/aria2/aria2.conf \
|
|
|
|
--rpc-listen-port=${PORT} \
|
|
|
|
--rpc-secret=${TOKEN} \
|
|
|
|
--dir=${DIR}
|