mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
add aria2
This commit is contained in:
parent
03afb54aa1
commit
df4834d8f0
35
aria2/Dockerfile
Normal file
35
aria2/Dockerfile
Normal file
@ -0,0 +1,35 @@
|
||||
#
|
||||
# Dockerfile for aria2
|
||||
#
|
||||
|
||||
FROM debian:jessie
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
ENV DIR /var/lib/aria2
|
||||
ENV ETC /etc/aria2
|
||||
ENV CERT server-cert.pem
|
||||
ENV KEY server-key.pem
|
||||
ENV TOKEN 00000000-0000-0000-0000-000000000000
|
||||
ENV PORT 6800
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y aria2 openssl \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& mkdir -p $ETC $DIR \
|
||||
&& cd $ETC \
|
||||
&& openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $KEY -out $CERT
|
||||
|
||||
EXPOSE $PORT
|
||||
VOLUME $DIR $ETC
|
||||
|
||||
CMD aria2c --disable-ipv6 \
|
||||
--enable-rpc \
|
||||
--rpc-listen-all=false \
|
||||
--rpc-listen-port=${PORT} \
|
||||
--rpc-allow-origin-all \
|
||||
--rpc-secure \
|
||||
--rpc-certificate=${CERT} \
|
||||
--rpc-private-key=${KEY} \
|
||||
--rpc-secret=${TOKEN} \
|
||||
--dir=${DIR}
|
||||
|
1
aria2/README.md
Normal file
1
aria2/README.md
Normal file
@ -0,0 +1 @@
|
||||
`aria2` is a utility for downloading files.
|
Loading…
Reference in New Issue
Block a user