node:12 does not work, downgrade to node:11
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e53cb77608
commit
3087a68cf0
18
Dockerfile
18
Dockerfile
|
@ -1,17 +1,17 @@
|
||||||
FROM node as webui
|
FROM node:11 as webui
|
||||||
|
|
||||||
#RUN git clone --depth=1 https://github.com/ziahamza/webui-aria2
|
RUN git clone --depth=1 https://github.com/ziahamza/webui-aria2
|
||||||
#WORKDIR /webui-aria2
|
WORKDIR /webui-aria2
|
||||||
#RUN npm install
|
RUN npm install node-sass \
|
||||||
#COPY configuration.js /webui-aria2/src/js/services/configuration.js
|
&& npm install
|
||||||
#RUN npm run-script build
|
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
|
RUN git clone --depth=1 https://github.com/mayswind/AriaNg /AriaNg
|
||||||
WORKDIR /AriaNg
|
WORKDIR /AriaNg
|
||||||
RUN npm install \
|
RUN npm install \
|
||||||
&& npm -g install gulp \
|
|
||||||
&& npm install natives@1.1.6 \
|
&& npm install natives@1.1.6 \
|
||||||
&& gulp clean build-bundle
|
&& npx gulp clean build-bundle
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ RUN apk add --no-cache \
|
||||||
|
|
||||||
COPY --from=sbruder/aria2_exporter /aria2_exporter /aria2_exporter
|
COPY --from=sbruder/aria2_exporter /aria2_exporter /aria2_exporter
|
||||||
|
|
||||||
#COPY --from=webui /webui-aria2/docs /srv/www/webui
|
COPY --from=webui /webui-aria2/docs /srv/www/webui
|
||||||
COPY --from=webui /AriaNg/dist /srv/www/webui/ng
|
COPY --from=webui /AriaNg/dist /srv/www/webui/ng
|
||||||
|
|
||||||
COPY --from=nginx:alpine /etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY --from=nginx:alpine /etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
Reference in a new issue