Files
model-platform/scripts/node-pnpm-base.Dockerfile
2026-08-11 16:12:24 +08:00

14 lines
686 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =============================================================================
# node-pnpm-base
# 前端构建阶段的公共基础镜像:只包含 node 运行时 + 激活好的 pnpm
# 不包含 pnpm installinstall 依赖 package.json/lock,每个项目/每次依赖变更都不同,
# 所以不放进 base,留在业务 Dockerfile 里)
# 构建: docker build -f node-pnpm-base.Dockerfile -t your-registry/node-pnpm-base:24.18.1 .
# 推送: docker push your-registry/node-pnpm-base:24.18.1
# =============================================================================
FROM node:24.18.1-slim
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@11.15.1 --activate