Browse Source

fix: 修改dockerfile

Before 9 months ago
parent
commit
b4a1077e3c
1 changed files with 4 additions and 1 deletions
  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=""