mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:18 +02:00
update aria2
This commit is contained in:
parent
73be3c85c4
commit
f98b59006f
@ -5,19 +5,20 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
MAINTAINER kev <noreply@datageek.info>
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
RUN apk add -U aria2 \
|
ENV TOKEN 00000000-0000-0000-0000-000000000000
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apk add -U aria2 \
|
||||||
&& rm -rf /var/cache/apk/* \
|
&& rm -rf /var/cache/apk/* \
|
||||||
&& aria2c https://github.com/tianon/gosu/releases/download/1.4/gosu-amd64 -o /usr/local/bin/gosu \
|
&& aria2c https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64 -o /usr/local/bin/gosu \
|
||||||
&& chmod +x /usr/local/bin/gosu \
|
&& chmod +x /usr/local/bin/gosu \
|
||||||
&& adduser -D aria2
|
&& adduser -D aria2
|
||||||
|
|
||||||
COPY aria2.conf /etc/aria2/
|
COPY aria2.conf /etc/aria2/
|
||||||
VOLUME /home/aria2 /etc/aria2
|
VOLUME /home/aria2 /etc/aria2
|
||||||
|
|
||||||
ENV TOKEN 00000000-0000-0000-0000-000000000000
|
EXPOSE 6800
|
||||||
|
CMD set -xe \
|
||||||
CMD chown -R aria2:aria2 /home/aria2 \
|
&& chown -R aria2:aria2 /home/aria2 \
|
||||||
&& gosu aria2 aria2c --conf-path=/etc/aria2/aria2.conf \
|
&& gosu aria2 aria2c --conf-path=/etc/aria2/aria2.conf \
|
||||||
--rpc-secret=${TOKEN}
|
--rpc-secret=${TOKEN}
|
||||||
|
|
||||||
EXPOSE 6800
|
|
||||||
|
Loading…
Reference in New Issue
Block a user