|
|
@ -12,8 +12,6 @@ RUN echo "{\"time\":\"$BUILD_TIMESTAMP\",\"build\": \"$BUILD_NUMBER\",\"revision |
|
|
|
|
|
|
|
RUN npm cache clean -f |
|
|
|
|
|
|
|
RUN rm -rf package-lock.json |
|
|
|
|
|
|
|
RUN npm install --registry https://nexus.ngaiot.com/repository/fs-npm/ |
|
|
|
|
|
|
|
RUN npm run build |
|
|
@ -22,6 +20,8 @@ RUN rm -rf client/src |
|
|
|
|
|
|
|
RUN rm -rf node_modules |
|
|
|
|
|
|
|
RUN rm -rf package-lock.json |
|
|
|
|
|
|
|
RUN npm install --production --force --registry https://nexus.ngaiot.com/repository/fs-npm/ |
|
|
|
|
|
|
|
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12 |
|
|
|