This commit is contained in:
浪子
2025-12-29 18:25:36 +08:00
parent 83f3415084
commit eefa8daa4f
4 changed files with 33 additions and 4 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ WORKDIR /app
# 复制package文件
COPY package*.json ./
# 安装依赖
RUN npm ci --only=production
# 安装依赖(使用 install 而不是 ci
RUN npm install --only=production
# 复制源代码
COPY src ./src