Simon Bruder
0363273f7a
All checks were successful
continuous-integration/drone/push Build is passing
32 lines
782 B
Docker
32 lines
782 B
Docker
FROM node as webui
|
|
|
|
RUN git clone --depth=1 https://github.com/ziahamza/webui-aria2
|
|
WORKDIR /webui-aria2
|
|
RUN npm install
|
|
COPY configuration.js /webui-aria2/src/js/services/configuration.js
|
|
RUN npm run-script build
|
|
|
|
RUN git clone --depth=1 https://github.com/mayswind/AriaNg /AriaNg
|
|
WORKDIR /AriaNg
|
|
RUN npm install \
|
|
&& npm -g install gulp \
|
|
&& npm install natives@1.1.6 \
|
|
&& gulp clean build-bundle
|
|
|
|
FROM alpine
|
|
|
|
RUN apk add --no-cache \
|
|
aria2 \
|
|
nginx \
|
|
su-exec
|
|
|
|
COPY --from=webui /webui-aria2/docs /srv/www/webui
|
|
COPY --from=webui /AriaNg/dist /srv/www/webui/ng
|
|
|
|
COPY --from=nginx:alpine /etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|