소스 검색

fix: 增加腾讯镜像

IlhamTahir 1 년 전
부모
커밋
a2d53b65b3
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      Dockerfile

+ 4 - 2
Dockerfile

@@ -1,8 +1,10 @@
 # Stage 1: Build Stage
 FROM node:20 AS builder
 
-# Install pnpm globally
-RUN npm install -g pnpm@latest
+# Set npm registry to Tencent Cloud
+RUN npm config set registry https://mirrors.cloud.tencent.com/npm/ \
+    && npm install -g pnpm@latest
+
 # Set the working directory inside the container
 WORKDIR /usr/src/app