-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
46 lines (35 loc) · 1.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM alpine:3.16.0
ARG ARIANG_VERSION
ARG BUILD_DATE
ARG VCS_REF
ENV ARIA2RPCPORT=8080
LABEL maintainer="hurlenko" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="aria2-ariang" \
org.label-schema.description="Aria2 downloader and AriaNg webui Docker image based on Alpine Linux" \
org.label-schema.version=$ARIANG_VERSION \
org.label-schema.url="https://github.com/hurlenko/aria2-ariang-docker" \
org.label-schema.license="MIT" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/hurlenko/aria2-ariang-docker" \
org.label-schema.vcs-type="Git" \
org.label-schema.vendor="hurlenko" \
org.label-schema.schema-version="1.0"
RUN apk update \
&& apk add --no-cache --update caddy aria2 su-exec curl
# AriaNG
WORKDIR /usr/local/www/ariang
RUN wget --no-check-certificate https://github.com/mayswind/AriaNg/releases/download/${ARIANG_VERSION}/AriaNg-${ARIANG_VERSION}.zip \
-O ariang.zip \
&& unzip ariang.zip \
&& rm ariang.zip \
&& chmod -R 755 ./
WORKDIR /aria2
COPY aria2.conf ./conf-copy/aria2.conf
COPY start.sh ./
COPY Caddyfile /usr/local/caddy/
VOLUME /aria2/data
VOLUME /aria2/conf
EXPOSE 8080
ENTRYPOINT ["./start.sh"]
CMD ["--conf-path=/aria2/conf/aria2.conf"]