Repository navigation
fix: build on Go 1.26 trixie into distroless static-debian13 - #11
Merged
Merged
Conversation
The builder moves from golang:1.22-bullseye to golang:1.26-trixie. Go 1.22 gets no security fixes, and bullseye-security now returns 404, so the v1.3.0-gn-v9 tag no longer builds. CGO is off and the sqlite build tag is removed. Every deployment uses CockroachDB, so the binary is static and the runtime moves from distroless/base-nossl-debian12 to distroless/static-debian13, without glibc. DSN=memory and sqlite DSNs no longer work in this image. Both base images are pinned by digest. go.mod stays at go 1.22, which keeps the GODEBUG defaults. Claude-Session: https://claude.ai/code/session_0192dFsdvVuQdqMdVxi9HDkz
This was referenced Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves
.docker/Dockerfile-buildto a digest-pinnedgolang:1.26-trixiebuilder withCGO_ENABLED=0ondistroless/static-debian13:nonroot, and removes SQLite from the image (DSN=memoryand sqlite DSNs no longer work, and no deployment uses them).Why: Go 1.22 gets no security fixes, and
bullseye-securityreturns 404, sov1.3.0-gn-v9does not build now. This replaces #10.Tested:
linux/arm64+linux/amd64builds pass. The arm64 image migrates and serves against CockroachDB v24.1.6 and fetches an HTTPS schema.selfservice/strategy/oidctests give 136 pass / 5 fail on both Go 1.26 and Go 1.22 (the same failures on both).https://claude.ai/code/session_0192dFsdvVuQdqMdVxi9HDkz