IlhamTahir 1 год назад
Родитель
Сommit
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