WeKnora/docker
tayadwx 9a7aa48e44
build(docker): mount the Go build cache when building the app image (#4320)
The compile step sits after `COPY . .`, so every source change invalidates
it. Without a build-cache mount each rebuild regenerates the whole Go
compile cache inside that layer (~2.7 GB): it accumulates in the local
builder cache, and since CI exports intermediate layers
(cache-to: type=gha, mode=max) it is uploaded to the GitHub Actions cache
whose per-repository storage limit is a hard 10 GB.

Mounting /root/.cache/go-build keeps the cache outside the layer: repeated
local builds reuse compiled objects instead of recompiling everything, and
the cached/transferred layer shrinks from ~3 GB to ~265 MB (the compiled
binary). Multi-stage output is unchanged - the final stage still copies
only the binaries and assets it names.

Co-authored-by: tayadwx <tayadwx@users.noreply.github.com>
2026-10-16 23:34:13 +08:00
..
config init commit 2025-08-05 15:08:07 +08:00
desktop feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
scripts feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
searxng feat(web-search): add SearXNG provider (#1166) 2026-05-11 16:53:47 +08:00
Dockerfile.app build(docker): mount the Go build cache when building the app image (#4320) 2026-10-16 23:34:13 +08:00
Dockerfile.docreader feat: support app and docreader build download mirrors (#4073) 2026-10-09 14:28:47 +08:00
Dockerfile.odl-hybrid feat(parser): add OpenDataLoader, PaddleOCR-VL engines, and parser improvements 2026-06-03 12:29:13 +08:00
Dockerfile.sandbox fix(sandbox): build real arm64 sandbox images and ship arm64 Cube variants 2026-09-30 13:34:01 +08:00
sandbox-pty-prompt.sh feat(sandbox): unify the interactive PTY prompt and reconnect running sandboxes (#3128) 2026-09-09 18:17:10 +08:00