ci: 基座切 idealjs/node:24.21.0-bookworm-slim(crane 直传转推,digest 一致);Dockerfile 移仓库根,按 依赖清单→安装→打包 分层,yarn4 直调 yarnPath 脚本免 corepack;CI 基座走 VPC 内网端点、凭据拆双 secret printf 登录、构建后登出清凭据、删产物上传步骤
This commit is contained in:
1 parent
99e8de3512
commit
4de4492354
4 files changed
+45
-49
No files matched your search
@@ -1,13 +0,0 @@
|
||||
# 教程站构建镜像——CI 用 buildah(无 daemon)执行,本地 docker/podman build 同样可用。
|
||||
# 基座=自家阿里云镜像仓(idealjs/node,由官方 node:24.14.0-alpine 转推;私有仓,CI 需 buildah login)。
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/idealjs/node:24.14.0-alpine
|
||||
|
||||
ENV YARN_NPM_REGISTRY_SERVER=https://registry.npmmirror.com
|
||||
WORKDIR /repo
|
||||
|
||||
# monorepo 全量上下文(.dockerignore 瘦身);依赖与构建同层——lockfile 由 --immutable 锁定
|
||||
COPY . .
|
||||
RUN rm -f /usr/local/bin/yarn /usr/local/bin/yarnpkg \
|
||||
&& corepack enable \
|
||||
&& yarn install --immutable \
|
||||
&& yarn workspace @stack/tutorial build
|
||||
Reference in new issue
Block a user