wenlele 2 years ago
parent
commit
db4d739e29
  1. 4
      web/Dockerfile

4
web/Dockerfile

@ -1,5 +1,5 @@
#FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12
FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2
COPY . /var/app
WORKDIR /var/app
EXPOSE 8080
@ -20,7 +20,7 @@ RUN apk update && apk add --no-cache \
RUN npm config set registry=http://10.8.30.22:7000
RUN npm cache clean -f
#RUN npm install -g node-gyp
#RUN rm -rf package-lock.json
RUN rm -rf package-lock.json
RUN npm install --registry http://10.8.30.22:7000
RUN npm run build
RUN rm -rf client/src

Loading…
Cancel
Save