From 5d455a302171df488e9663d30e8fb84f1af7fd53 Mon Sep 17 00:00:00 2001 From: lilydoar Date: Thu, 28 May 2026 14:09:33 -0700 Subject: [PATCH] Narrow cli.Dockerfile's workers COPY to what's actually needed The CLI image copied the entire workers/ tree (all language worker sources) but only needs workers/proto (for the kitchen-sink-gen protoc build) and workers/go/harness/api (the go.mod replace target for the ./cmd/omes build). Copy just those two, trimming the build context and making the dependency explicit. Verified by building the CLI image with podman. stack-info: PR: https://github.com/temporalio/omes/pull/386, branch: lilydoar/stack/18 --- dockerfiles/cli.Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dockerfiles/cli.Dockerfile b/dockerfiles/cli.Dockerfile index 388f436b..368803fd 100644 --- a/dockerfiles/cli.Dockerfile +++ b/dockerfiles/cli.Dockerfile @@ -33,7 +33,10 @@ COPY metrics ./metrics COPY scenarios ./scenarios COPY internal ./internal COPY devserver ./devserver -COPY workers ./workers/ +# kitchen-sink-gen needs the proto tree; the CLI build needs the harness/api +# replace target. The rest of workers/ (language workers) is not needed here. +COPY workers/proto ./workers/proto +COPY workers/go/harness/api ./workers/go/harness/api COPY go.mod go.sum ./ # Build the CLI