🗃️ modified: Dockerfile 🗃️

This commit is contained in:
Jason 2022-07-11 11:58:26 -04:00
parent 995ebeb287
commit d6827d6d7e
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -1,12 +1,12 @@
FROM casjaysdevdocker/alpine:latest AS build FROM casjaysdevdocker/nginx:latest AS build
ENV ARIANG_VERSION=1.2.4 \ ENV ARIANG_VERSION=1.2.4 \
DOMAIN=0.0.0.0:8080 DOMAIN=0.0.0.0:8080
RUN apk -U upgrade && \ RUN apk -U upgrade && \
apk add --no-cache \ apk add --no-cache \
nginx \ aria2 \
aria2 && \ unzip && \
rm -R /etc/nginx && \ rm -R /etc/nginx && \
mkdir -p /aria2/config /aria2/data /tmp/ariang /usr/local/www/ariang && \ mkdir -p /aria2/config /aria2/data /tmp/ariang /usr/local/www/ariang && \
cd /tmp/ariang && \ cd /tmp/ariang && \
@ -15,11 +15,10 @@ RUN apk -U upgrade && \
rsync -ahP /tmp/ariang/. /usr/local/www/ariang/ && \ rsync -ahP /tmp/ariang/. /usr/local/www/ariang/ && \
rm -Rf /tmp/ariang rm -Rf /tmp/ariang
# AriaNG
WORKDIR /usr/local/www/ariang WORKDIR /usr/local/www/ariang
# config files
COPY ./config/. /etc/ COPY ./config/. /etc/
COPY ./data/. /data/
COPY ./bin/. /usr/local/bin/ COPY ./bin/. /usr/local/bin/
FROM build FROM build