-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 875 Bytes
/
Dockerfile
File metadata and controls
34 lines (28 loc) · 875 Bytes
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
FROM __BASE_IMAGE_ARCH__/alpine:3.9
ARG ARIA_NG_VERSION=1.1.4
RUN apk update && \
apk add --no-cache --update bash && \
mkdir -p /conf && \
mkdir -p /conf-copy && \
mkdir -p /data && \
mkdir -p /aria2-ng && \
mkdir -p /usr/local/nginx/html && \
apk add --no-cache --update aria2 && \
apk add --no-cache wget && \
wget https://github.com/mayswind/AriaNg/releases/download/${ARIA_NG_VERSION}/AriaNg-${ARIA_NG_VERSION}.zip -O /aria2-ng/archive.zip && \
cd /aria2-ng && \
unzip archive.zip && \
rm archive.zip && \
apk del wget && \
apk add --update nginx && \
rm -rf /var/cache/apk/*
ADD files/start.sh /conf-copy/start.sh
ADD files/aria2.conf /conf-copy/aria2.conf
ADD files/nginx.conf /etc/nginx/nginx.conf
RUN chmod +x /conf-copy/start.sh
WORKDIR /
VOLUME ["/data"]
VOLUME ["/conf"]
EXPOSE 6800
EXPOSE 80
CMD ["/conf-copy/start.sh"]