This commit is contained in:
2026-05-24 05:15:53 +08:00
parent 3bee6aaf18
commit 8351498071
3 changed files with 27 additions and 1 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:24-alpine
WORKDIR /app
# 1. 启用 pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
# 2. 复制 workspace 配置
COPY pnpm-workspace.yaml pnpm-lock.yaml package.json ./
# 3. 安装所有依赖
RUN pnpm install --frozen-lockfile
# 4. 复制源码
COPY . .