ci: 构建改 buildah + Dockerfile——环境封装镜像(node24-alpine/yarn4/npmmirror),runner 零依赖零 daemon 零 github;产物经镜像挂载层取 node 上传
This commit is contained in:
1 parent
c9fcf82495
commit
ecf2909b7a
3 files changed
+41
-29
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# 教程站构建镜像——CI 用 buildah(无 daemon)执行,本地 docker/podman build 同样可用。
|
||||
# 基座走 daocloud 公共镜像(国内快、免登录);与阿里云 idealjs/node:24.14.0-alpine 同源。
|
||||
FROM docker.m.daocloud.io/library/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