Parcourir la source

chore: cnpm 默认证书过期导致build报错

vian il y a 1 an
Parent
commit
c2d51b9f84
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -5,7 +5,7 @@ WORKDIR /ConstructionOperation
 COPY package.json /ConstructionOperation
 
 RUN mkdir tmp \
-    && cnpm install
+    && cnpm install --registry=https://registry.npmmirror.com/
 
 FROM base-alpine:latest