Public: anyone can read this; the crew can change it.
The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500 #12975
Check · Review · Land · Live done — Landed and live in production.
trevato/docs-ride-in-the-image → main 1 commit
3 files
changed +12
−7
.dockerignore −3
| @@ -3,8 +3,5 @@ | ||
| 3 | 3 | bench/ |
| 4 | 4 | data/ |
| 5 | 5 | dist/ |
| 6 | docs/ | |
| 7 | !docs/PRINCIPLES.md | |
| 8 | !docs/DESIGN.md | |
| 9 | 6 | node_modules/ |
| 10 | 7 | test/ |
Dockerfile +5 −4
| @@ -17,10 +17,11 @@ RUN apt-get update \ | ||
| 17 | 17 | WORKDIR /app |
| 18 | 18 | COPY package.json tsconfig.json ./ |
| 19 | 19 | COPY src ./src |
| 20 | # The principles the forge's own agents are briefed with (src/crew/principles.ts). | |
| 21 | COPY docs/PRINCIPLES.md ./docs/PRINCIPLES.md | |
| 22 | # The design principles a src/web/ review is held to (src/crew/design_principles.ts). | |
| 23 | COPY docs/DESIGN.md ./docs/DESIGN.md | |
| 20 | # The forge's documentation: /docs and the terminal list docs/*.md and docs/features/*.md from the | |
| 21 | # release's checkout (src/view/docs.ts), and the crew is briefed from docs/PRINCIPLES.md and | |
| 22 | # docs/DESIGN.md (src/crew/principles.ts, src/crew/design_principles.ts). With only those two files | |
| 23 | # copied, /docs listed two documents, every guide page was a 404 and every feature note a 500. | |
| 24 | COPY docs ./docs | |
| 24 | 25 | # The OpenCode plugin the forge serves at /plugins/opencode/forge.ts (src/http/plugin_routes.ts). |
| 25 | 26 | COPY plugins/opencode ./plugins/opencode |
| 26 | 27 | # The Claude Code command files the marketplace manifest lists (same route file). |
test/dockerfile-copies.test.ts +7
| @@ -37,6 +37,13 @@ describe("what the Dockerfile copies reaches the build", () => { | ||
| 37 | 37 | expect(ignored(lines(".dockerignore"), path)).toBe(false); |
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | // /docs reads its listing from the release's checkout (src/view/docs.ts): the whole folder rides. | |
| 41 | test("the documentation /docs lists rides in the image, feature notes included", () => { | |
| 42 | expect(copied).toContain("docs"); | |
| 43 | expect(existsSync(join(ROOT, "docs", "features", "README.md"))).toBe(true); | |
| 44 | expect(ignored(lines(".dockerignore"), "docs/features/README.md")).toBe(false); | |
| 45 | }); | |
| 46 | ||
| 40 | 47 | // The packs are forge repos read from git (#10532): no folder of them rides in the image. |
| 41 | 48 | test("no packs folder is copied: /packs reads the marked repos", () => { |
| 42 | 49 | expect(copied).not.toContain("packs"); |
new above
offline