浏览代码

fix: update Dockerfile

Before 7 月之前
父节点
当前提交
02e0d6b77d
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Dockerfile

+ 2 - 3
Dockerfile

@@ -3,9 +3,8 @@ FROM node:23.3.0-alpine AS base
 FROM base AS deps
 WORKDIR /app
 COPY package.json ./
-RUN npm cache clean --force &&  \
-    npm install cnpm -g  && \
-    cnpm i
+RUN npm cache clean --force && npm install -g cnpm --registry=https://registry.npmmirror.com && cnpm install
+
 
 FROM base AS builder
 ARG BUILD_ARGS=""