Explorar o código

fix: 修改dockerfile

Before hai 9 meses
pai
achega
b4a1077e3c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Dockerfile

+ 4 - 1
Dockerfile

@@ -3,7 +3,10 @@ FROM node:20-alpine AS base
 FROM base AS deps
 WORKDIR /app
 COPY package.json ./
-RUN npm cache clean --force && npm install pnpm -g && pnpm i
+RUN npm config set registry http://registry.npmmirror.com && \
+    npm cache clean --force &&  \
+    npm install pnpm -g && \
+    pnpm i
 
 FROM base AS builder
 ARG BUILD_ARGS=""