High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
chore(docker): exclude .tools/, pinchtab-dev and dist/ from the build context (PIN-378)
Luigi Agostibda7e809e07e
diff --git a/.dockerignore b/.dockerignoreindex af8f9430..b1ed3e7d 100644--- a/.dockerignore+++ b/.dockerignore@@ -1,5 +1,6 @@# Binariespinchtab+pinchtab-devbrowser-bridge# Test coverage@@ -47,6 +48,8 @@ plugins/grok/node_modules/# Build caches.gocache/.gomodcache/+.tools/+dist/tmp/# Markdown (README, RELEASE, etc.)diff --git a/tests/tools/runner/internal/e2e/dockerimage_test.go b/tests/tools/runner/internal/e2e/dockerimage_test.goindex 09d65e61..ba54bde3 100644--- a/tests/tools/runner/internal/e2e/dockerimage_test.go+++ b/tests/tools/runner/internal/e2e/dockerimage_test.go@@ -14,10 +14,11 @@ func writeProbeContext(t *testing.T) string {t.Helper()root := t.TempDir()for path, body := range map[string]string{- ".dockerignore": "# comment\ntests/\nnode_modules/\ndocs/\n!docs/examples/\n*.md\n",+ ".dockerignore": "# comment\ntests/\nnode_modules/\ndocs/\n!docs/examples/\n.tools/\n*.md\n","Dockerfile": "FROM alpine\nCOPY . .\n","main.go": "package main\n","scripts/build.sh": "echo build\n",+ ".tools/cloakbrowser/browser": "binary\n","tests/e2e/scenarios/probe.sh": "echo scenario\n","tests/tools/docker/cft.Dockerfile": "FROM ubuntu\nARG VERSION=1\n","docs/examples/enrich/main.go": "package main\n",@@ -148,6 +149,10 @@ func TestBuildInputDigestFollowsTheDockerignoreOnlyWhereItIsUnambiguous(t *testiname: "a nested directory named like the excluded tests/ still counts",file: "npm/tests/integration.test.ts", body: "test('y', () => {})\n", wantChange: true,},+ {+ name: "a file under the excluded .tools/ cloakbrowser download does not affect the digest",+ file: ".tools/cloakbrowser/browser", body: "different binary\n", wantChange: false,+ },{name: "a directory with a negation stays in the digest, because the negation puts part of it back",file: "docs/examples/enrich/main.go", body: "package main // edited\n", wantChange: true,