mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 04:42:10 +03:00
`.dockerignore` excluded everything under `docs/` except `openapi.yaml`, which broke the in-product Docs viewer at `/docs/*` with "ENOENT: no such file or directory, open '/app/docs/SETUP_GUIDE.md'" for every help page. The previous block-list was meant to keep the image small but it hid the ~5 MB English markdown tree that the viewer actually reads. Replace the block with a targeted exclude of the heavy assets that account for ~45 MB of the original ~50 MB: - docs/i18n/** (translated copies — viewer falls back to English) - docs/screenshots/** - docs/diagrams/exported/** plus raster/SVG variants Note: Go filepath.Match (Docker's matcher) treats `*` as not crossing `/`, so the existing `*.md` rule still excludes only root-level markdown — nested `docs/**/*.md` is implicitly kept without a re-include rule that would have brought i18n back. Added a regression test that parses .dockerignore and asserts the critical English docs survive the filter while the heavy paths still do not.