🤖 fix: Docker image omits the web app manifest, icons and fonts from dist/
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- docker, vite
- Domain
- devops
Research direction
Start with the runtime stage of the Dockerfile, where the COPY --from=builder /app/dist/... lines select files from the builder's dist/. Vite copies public/ into dist/, so check which of those files (manifest.json, the .ico and .png icons, and the .woff/.woff2 fonts from src/browser/styles/globals.css) the existing patterns miss. Done means a built image serves those files with 200 when checked with curl, and the .github/workflows/pr.yml docker path filter still matches the builder stage.
Written by the indexing model from the issue text.
Description
The Docker runtime stage leaves the web app's manifest, icons and fonts out of the image. xum server in Docker therefore cannot serve them.
Evidence (Dockerfile read on origin/main 27e888d36a)
The runtime stage copies only these paths from the builder's dist/:
COPY --from=builder /app/dist/static ./dist/static
COPY --from=builder /app/dist/*.html ./dist/
COPY --from=builder /app/dist/*.css ./dist/
COPY --from=builder /app/dist/*.js ./dist/
COPY --from=builder /app/dist/*.br /app/dist/*.gz ./dist/
COPY --from=builder /app/dist/typescript-lib ./dist/typescript-lib
COPY --from=builder /app/dist/runtime ./dist/runtime
Vite copies public/ into dist/. No pattern above matches these public/ files: manifest.json, favicon.ico, favicon-dark.ico, apple-touch-icon.png, icon.png, icon-192.png, icon-512.png. index.html links manifest.json, favicon.ico and apple-touch-icon.png. Vite emits fonts as *.woff/*.woff2, which no pattern matches either (src/browser/styles/globals.css loads nerd-font-symbols.woff2). service-worker.js is covered by dist/*.js.
I did not build the image, so the runtime result is not verified. Before #5963, a missing file got the SPA page with status 200. After #5963, it gets 404.
Fix
Copy the missing extensions (at least *.json, *.png, *.ico, *.woff, *.woff2) in the runtime stage. Then check them with curl against a built image. Keep the .github/workflows/pr.yml docker path filter in sync if the builder stage changes.
Owner: coordinator desk (workspace 3203e76efb). Found by the #5945 server-paths lane.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $3.14
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 140
- Avg merge
- 2h 57m
- Merged PRs (30d)
- 905
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coder/xum
-
bug investigation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
approved backlog
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
approved backlog
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
approved backlog
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
backlog
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NousResearch/hermes-agent#136483 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
vercel/ai#22796 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug]: Web chat input doesn't regain focus after a reply finishesPossibly taken @GaijinSystems claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
zeroclaw-labs/zeroclaw#11658 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
babylonlabs-io/babylon-toolkit#2711 ·
Maintainers usually reply within 1 day