2022-07-11 11:58:26 -04:00
|
|
|
FROM casjaysdevdocker/nginx:latest AS build
|
2022-02-14 16:43:40 -05:00
|
|
|
|
2022-07-09 09:01:27 -04:00
|
|
|
ENV ARIANG_VERSION=1.2.4 \
|
2022-02-14 16:43:40 -05:00
|
|
|
DOMAIN=0.0.0.0:8080
|
|
|
|
|
|
|
|
RUN apk -U upgrade && \
|
|
|
|
apk add --no-cache \
|
2022-07-11 11:58:26 -04:00
|
|
|
aria2 \
|
|
|
|
unzip && \
|
2022-02-14 16:43:40 -05:00
|
|
|
rm -R /etc/nginx && \
|
2022-07-09 09:11:09 -04:00
|
|
|
mkdir -p /aria2/config /aria2/data /tmp/ariang /usr/local/www/ariang && \
|
2022-07-09 09:01:27 -04:00
|
|
|
cd /tmp/ariang && \
|
|
|
|
curl -q -LSsf https://github.com/mayswind/AriaNg/releases/download/$ARIANG_VERSION/AriaNg-$ARIANG_VERSION.zip -o /tmp/AriaNg-$ARIANG_VERSION.zip && \
|
|
|
|
unzip /tmp/AriaNg-$ARIANG_VERSION.zip && \
|
2022-07-09 09:11:09 -04:00
|
|
|
rsync -ahP /tmp/ariang/. /usr/local/www/ariang/ && \
|
2022-07-09 09:01:27 -04:00
|
|
|
rm -Rf /tmp/ariang
|
2022-02-14 16:43:40 -05:00
|
|
|
|
|
|
|
WORKDIR /usr/local/www/ariang
|
|
|
|
|
|
|
|
COPY ./config/. /etc/
|
2022-07-11 11:58:26 -04:00
|
|
|
COPY ./data/. /data/
|
2022-02-14 16:43:40 -05:00
|
|
|
COPY ./bin/. /usr/local/bin/
|
|
|
|
|
|
|
|
FROM build
|
|
|
|
ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')"
|
|
|
|
|
|
|
|
LABEL \
|
|
|
|
org.label-schema.name="aria2" \
|
|
|
|
org.label-schema.description="Aria2 downloader and AriaNg webui Docker image based on Alpine Linux" \
|
2022-07-09 09:01:27 -04:00
|
|
|
org.label-schema.url="https://hub.docker.com/r/casjaysdevdocker/aria2" \
|
|
|
|
org.label-schema.vcs-url="https://github.com/casjaysdevdocker/aria2" \
|
2022-02-14 16:43:40 -05:00
|
|
|
org.label-schema.build-date=$BUILD_DATE \
|
|
|
|
org.label-schema.version=$BUILD_DATE \
|
|
|
|
org.label-schema.vcs-ref=$BUILD_DATE \
|
2022-07-09 09:01:27 -04:00
|
|
|
org.label-schema.license="WTFPL" \
|
2022-02-14 16:43:40 -05:00
|
|
|
org.label-schema.vcs-type="Git" \
|
|
|
|
org.label-schema.schema-version="1.0" \
|
|
|
|
org.label-schema.vendor="CasjaysDev" \
|
|
|
|
maintainer="CasjaysDev <docker-admin@casjaysdev.com>"
|
|
|
|
|
|
|
|
WORKDIR /aria2
|
|
|
|
VOLUME ["/aria2/data", "/aria2/config"]
|
|
|
|
|
|
|
|
EXPOSE 6800
|
|
|
|
|
|
|
|
HEALTHCHECK CMD ["/usr/local/bin/entrypoint-aria2.sh", "healthcheck"]
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint-aria2.sh"]
|