mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-12 04:23:04 +02:00
fix
This commit is contained in:
parent
f621e658c3
commit
c6ca58926f
@ -6,7 +6,7 @@ FROM debian:jessie
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y aria2 \
|
||||
&& apt-get install -y aria2 sudo \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& useradd -m aria2
|
||||
|
||||
@ -16,16 +16,15 @@ ENV TOKEN 00000000-0000-0000-0000-000000000000
|
||||
|
||||
EXPOSE 6800
|
||||
VOLUME /home/aria2 /etc/aria2
|
||||
USER aria2
|
||||
|
||||
CMD aria2c --disable-ipv6 \
|
||||
--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
|
||||
CMD sudo -u aria2 aria2c --disable-ipv6 \
|
||||
--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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user