refactor/tutorial-dockerfile-location
main
教程镜像的 Dockerfile 放在仓库根目录,而 web-runner 的在 apps/web-runner/ 下,两个位置不一致。
apps/web-runner/
Dockerfile
apps/tutorial/Dockerfile
yarn.lock
docker build -f apps/tutorial/Dockerfile .
apps/tutorial/.env.development
idealjs/ci-runner:1.0.3
/workspace
--dockerfile=apps/tutorial/Dockerfile --context=.
Host: stack.idealjs.com
dist
https://stack-runner.idealjs.com
docker build
yarn format:check
与 apps/web-runner/Dockerfile 对齐。构建上下文仍是仓库根目录(依赖层要读根上的 yarn.lock 与各 workspace 清单),只是 Dockerfile 换个位置,构建时用 -f 或 --dockerfile 指定。工作流矩阵里 tutorial 的 dockerfile 路径同步更新。
No dependencies set.
The note is not visible to the blocked user.
背景
教程镜像的 Dockerfile 放在仓库根目录,而 web-runner 的在
apps/web-runner/下,两个位置不一致。变更内容
Dockerfile移到apps/tutorial/Dockerfile,内容不变,git 识别为 100% 重命名。yarn.lock与各 workspace 清单。本地用docker build -f apps/tutorial/Dockerfile .。apps/tutorial/Dockerfile。apps/tutorial/.env.development的注释改为「由本目录 Dockerfile 构建时注入」。自测结果
idealjs/ci-runner:1.0.3作 job 容器,/workspace以 bind mount 挂入,--dockerfile=apps/tutorial/Dockerfile --context=.):构建成功,镜像工作目录为/workspace,带Host: stack.idealjs.com请求返回 200,dist里的运行时地址为https://stack-runner.idealjs.com。docker build:通过,15 步全部命中缓存,与迁移前的镜像一致。Dockerfile的引用只有工作流矩阵一处,已同步。yarn format:check通过。