Skip to content

Dockerfile: build both interceptor and drainer binaries#4

Open
hhuuggoo wants to merge 1 commit into
postgres-drainerfrom
deploy-dockerfile
Open

Dockerfile: build both interceptor and drainer binaries#4
hhuuggoo wants to merge 1 commit into
postgres-drainerfrom
deploy-dockerfile

Conversation

@hhuuggoo
Copy link
Copy Markdown
Contributor

@hhuuggoo hhuuggoo commented Jun 7, 2026

What

Update the Dockerfile to build both /app/phoebe (interceptor) and /app/phoebe-drainer (the Postgres drainer) in one image. The k8s command/args select which binary runs, so a single image+tag ships both.

  • Static build (CGO_ENABLED=0) on alpine + ca-certificates for outbound TLS (Valkey/Postgres/upstreams).
  • Verified: docker build succeeds, both binaries run (-h works), image is ~33MB.

Base

Targets postgres-drainer (not main) because it needs cmd/drainer. Merge after #3.

Build /app/phoebe (interceptor) and /app/phoebe-drainer (the Postgres
drainer) in one image; the k8s command selects which runs. Static build
(CGO_ENABLED=0) on alpine + ca-certificates for outbound TLS to
Valkey/Postgres/upstreams. Verified: docker build succeeds, both binaries
run, image is ~33MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant