This commit is contained in:
aaron 2025-01-09 14:55:30 +08:00
parent ff732d2643
commit 44b5a2f966

View File

@ -4,6 +4,10 @@ FROM node:18-alpine as build-stage
# 设置工作目录 # 设置工作目录
WORKDIR /app WORKDIR /app
# 设置 npm 淘宝镜像源
RUN npm config set registry https://registry.npmmirror.com
RUN npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass/
# 复制 package.json 和 package-lock.json (如果存在) # 复制 package.json 和 package-lock.json (如果存在)
COPY package*.json ./ COPY package*.json ./