From c9a93ef6fbebeb361737401c10a3a25bf4124201 Mon Sep 17 00:00:00 2001 From: blumamir Date: Fri, 24 Jul 2026 20:06:09 +0300 Subject: [PATCH] CORE-1351: expand root .dockerignore to shrink build context Exclude local artifacts and unrelated trees so root-context Docker builds send ~19MiB instead of ~328MiB. Co-authored-by: Cursor --- .dockerignore | 52 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index cb1365ea43..7fe67eb1cb 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,10 +1,52 @@ -frontend/webapp/node_modules +# VCS / IDE / local tooling .git/ +.github/ +.vscode/ +.cursor/ +.devcontainer/ +.tools/ +**/.tools/ + +# Workspace / credentials +go.work +go.work.sum +go.work.bak +go.work.sum.bak +gha-creds-*.json +.env +kubeconfig + +# Docs and non-build trees (root-context builds never COPY these) +docs/ +scripts/ +hooks/ +own-observability/ +tests/ +tests-infrastructure/ + +# Local build / test artifacts +**/bin/ +**/testbin/ +**/dist/ +**/artifacts/ +**/__debug_bin* +**/*.log +**/*.logs +**/cover.out +**/.DS_Store + +# CLI host binary (rebuilt inside the image) +cli/odigos +/odigos + +# Frontend: deps and host build outputs (yarn build runs in the image) +**/node_modules/ +frontend/webapp/.next/ +frontend/webapp/out/ +frontend/webapp/cypress/ + +# Dockerfiles are read via -f from the host; keep them out of the context Dockerfile odiglet/Dockerfile odiglet/base.Dockerfile odiglet/debug.Dockerfile -tests # not needed in context for odigos components builds -go.work -go.work.sum -gha-creds-*.json