mirror of
https://github.com/casjaysdevdocker/aria2
synced 2025-01-31 00:34:21 -05:00
🗃️ modified: Dockerfile 🗃️
This commit is contained in:
parent
394389a85c
commit
67a2f2fbb7
20
Dockerfile
20
Dockerfile
@ -1,7 +1,6 @@
|
|||||||
FROM casjaysdev/alpine:latest AS build
|
FROM casjaysdevdocker/alpine:latest AS build
|
||||||
|
|
||||||
ENV \
|
ENV ARIANG_VERSION=1.2.4 \
|
||||||
ARIANG_VERSION=1.2.3 \
|
|
||||||
DOMAIN=0.0.0.0:8080
|
DOMAIN=0.0.0.0:8080
|
||||||
|
|
||||||
RUN apk -U upgrade && \
|
RUN apk -U upgrade && \
|
||||||
@ -9,11 +8,15 @@ RUN apk -U upgrade && \
|
|||||||
nginx \
|
nginx \
|
||||||
aria2 && \
|
aria2 && \
|
||||||
rm -R /etc/nginx && \
|
rm -R /etc/nginx && \
|
||||||
mkdir -p /aria2/config /aria2/data /usr/local/www/ariang
|
mkdir -p /aria2/config /aria2/data /tmp/ariang && \
|
||||||
|
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 && \
|
||||||
|
rsync -ahP /tmp/ariang/. /usr/local/www/ariang/ && \
|
||||||
|
rm -Rf /tmp/ariang
|
||||||
|
|
||||||
# AriaNG
|
# AriaNG
|
||||||
WORKDIR /usr/local/www/ariang
|
WORKDIR /usr/local/www/ariang
|
||||||
COPY ./src/web/. ./
|
|
||||||
|
|
||||||
# config files
|
# config files
|
||||||
COPY ./config/. /etc/
|
COPY ./config/. /etc/
|
||||||
@ -25,12 +28,12 @@ ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')"
|
|||||||
LABEL \
|
LABEL \
|
||||||
org.label-schema.name="aria2" \
|
org.label-schema.name="aria2" \
|
||||||
org.label-schema.description="Aria2 downloader and AriaNg webui Docker image based on Alpine Linux" \
|
org.label-schema.description="Aria2 downloader and AriaNg webui Docker image based on Alpine Linux" \
|
||||||
org.label-schema.url="https://github.com/casjaysdev/aria2" \
|
org.label-schema.url="https://hub.docker.com/r/casjaysdevdocker/aria2" \
|
||||||
org.label-schema.vcs-url="https://github.com/casjaysdev/aria2" \
|
org.label-schema.vcs-url="https://github.com/casjaysdevdocker/aria2" \
|
||||||
org.label-schema.build-date=$BUILD_DATE \
|
org.label-schema.build-date=$BUILD_DATE \
|
||||||
org.label-schema.version=$BUILD_DATE \
|
org.label-schema.version=$BUILD_DATE \
|
||||||
org.label-schema.vcs-ref=$BUILD_DATE \
|
org.label-schema.vcs-ref=$BUILD_DATE \
|
||||||
org.label-schema.license="MIT" \
|
org.label-schema.license="WTFPL" \
|
||||||
org.label-schema.vcs-type="Git" \
|
org.label-schema.vcs-type="Git" \
|
||||||
org.label-schema.schema-version="1.0" \
|
org.label-schema.schema-version="1.0" \
|
||||||
org.label-schema.vendor="CasjaysDev" \
|
org.label-schema.vendor="CasjaysDev" \
|
||||||
@ -40,6 +43,7 @@ WORKDIR /aria2
|
|||||||
VOLUME ["/aria2/data", "/aria2/config"]
|
VOLUME ["/aria2/data", "/aria2/config"]
|
||||||
|
|
||||||
EXPOSE 6800
|
EXPOSE 6800
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
HEALTHCHECK CMD ["/usr/local/bin/entrypoint-aria2.sh", "healthcheck"]
|
HEALTHCHECK CMD ["/usr/local/bin/entrypoint-aria2.sh", "healthcheck"]
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint-aria2.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint-aria2.sh"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user