Browse Source

fix: web/Dockerfile cnpm install error

update file
- web/Dockerfile

fixed:
- cnpm install error
main
SliverHorn 3 years ago
committed by GitHub
parent
commit
b129ae85c4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      web/Dockerfile

3
web/Dockerfile

@ -3,8 +3,7 @@ FROM node:12.16.1
WORKDIR /gva_web/
COPY . .
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
RUN cnpm install || npm install
RUN npm install
RUN npm run build
FROM nginx:alpine

Loading…
Cancel
Save