1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00
dockerfiles/aria2/Dockerfile
2022-08-08 17:56:44 +08:00

23 lines
401 B
Docker

#
# Dockerfile for aria2
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache aria2
COPY ./data/etc/aria2.conf /etc/aria2/
ENV DIR=/data
ENV PORT=6800
ENV TOKEN=00000000-0000-0000-0000-000000000000
WORKDIR $DIR
EXPOSE ${PORT}
CMD aria2c --conf-path=/etc/aria2/aria2.conf \
--rpc-listen-port=${PORT} \
--rpc-secret=${TOKEN} \
--dir=${DIR}