mirror of
https://github.com/wahyd4/aria2-ariang-docker.git
synced 2026-08-08 21:05:50 +10:00
simply dockerfile again
This commit is contained in:
+19
-14
@@ -12,24 +12,29 @@ ENV ARIA2_PWD=password
|
||||
ENV SSL=false
|
||||
|
||||
RUN apk update \
|
||||
&& apk add wget bash curl openrc gnupg aria2 tar --no-cache
|
||||
&& apk add wget bash curl openrc gnupg aria2 tar --no-cache \
|
||||
&& curl https://getcaddy.com | bash -s personal \
|
||||
&& curl -fsSL https://filebrowser.xyz/get.sh | bash \
|
||||
&& wget -N https://bin.equinox.io/c/ekMN3bCZFUn/forego-stable-linux-amd64.tgz \
|
||||
&& tar -zxvf forego-stable-linux-amd64.tgz \
|
||||
&& rm -rf forego-stable-linux-amd64.tgz \
|
||||
&& mkdir -p /usr/local/www \
|
||||
&& mkdir -p /usr/local/www/aria2
|
||||
|
||||
RUN curl https://getcaddy.com | bash -s personal
|
||||
RUN curl -fsSL https://filebrowser.xyz/get.sh | bash
|
||||
RUN wget -N https://bin.equinox.io/c/ekMN3bCZFUn/forego-stable-linux-amd64.tgz && tar -zxvf forego-stable-linux-amd64.tgz && rm -rf forego-stable-linux-amd64.tgz
|
||||
|
||||
RUN mkdir -p /usr/local/www && mkdir -p /usr/local/www/aria2
|
||||
ADD aria2c.sh caddy.sh Procfile /app/
|
||||
ADD conf /app/conf
|
||||
COPY aria2c.sh caddy.sh Procfile /app/
|
||||
COPY Caddyfile SecureCaddyfile /usr/local/caddy/
|
||||
ADD Caddyfile SecureCaddyfile /usr/local/caddy/
|
||||
|
||||
# AriaNg
|
||||
RUN mkdir /usr/local/www/aria2/Download && cd /usr/local/www/aria2 \
|
||||
&& chmod +rw /app/conf/aria2.session \
|
||||
&& version=1.1.0 \
|
||||
&& wget -N --no-check-certificate https://github.com/mayswind/AriaNg/releases/download/${version}/AriaNg-${version}.zip && unzip AriaNg-${version}.zip && rm -rf AriaNg-${version}.zip \
|
||||
&& chmod -R 755 /usr/local/www/aria2 \
|
||||
&& sed -i 's/6800/80/g' /usr/local/www/aria2/js/aria-ng*.js
|
||||
RUN mkdir /usr/local/www/aria2/Download \
|
||||
&& cd /usr/local/www/aria2 \
|
||||
&& chmod +rw /app/conf/aria2.session \
|
||||
&& version=1.1.0 \
|
||||
&& wget -N --no-check-certificate https://github.com/mayswind/AriaNg/releases/download/${version}/AriaNg-${version}.zip \
|
||||
&& unzip AriaNg-${version}.zip \
|
||||
&& rm -rf AriaNg-${version}.zip \
|
||||
&& chmod -R 755 /usr/local/www/aria2 \
|
||||
&& sed -i 's/6800/80/g' /usr/local/www/aria2/js/aria-ng*.js
|
||||
|
||||
# folder for storing ssl keys
|
||||
VOLUME /app/conf/key
|
||||
|
||||
Reference in New Issue
Block a user