





















@@ -7,13 +7,21 @@ import YAML from "yaml";
7788const repoRoot = resolve(fileURLToPath(new URL(".", import.meta.url)), "..");
99const dockerfilePath = join(repoRoot, "Dockerfile");
10+const dockerSetupDockerfilePaths = ["Dockerfile", "scripts/docker/sandbox/Dockerfile"] as const;
1011const pnpmWorkspacePath = join(repoRoot, "pnpm-workspace.yaml");
11121213function collapseDockerContinuations(dockerfile: string): string {
1314return dockerfile.replace(/\\\r?\n[ \t]*/g, " ");
1415}
15161617describe("Dockerfile", () => {
18+it("does not force an external Dockerfile frontend pull", async () => {
19+for (const path of dockerSetupDockerfilePaths) {
20+const dockerfile = await readFile(join(repoRoot, path), "utf8");
21+expect(dockerfile, path).not.toMatch(/^#\s*syntax=/m);
22+}
23+});
24+1725it("uses full bookworm for build stages and slim bookworm for runtime", async () => {
1826const dockerfile = await readFile(dockerfilePath, "utf8");
1927expect(dockerfile).toContain(
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。