feat(deploy): add Dockerfile.z3 multi-stage build with Z3 from source - #292
Open
telleroutlook wants to merge 1 commit into
Open
feat(deploy): add Dockerfile.z3 multi-stage build with Z3 from source#292telleroutlook wants to merge 1 commit into
telleroutlook wants to merge 1 commit into
Conversation
Adds deploy/Dockerfile.z3 with three stages: - z3-builder: compiles Z3 from source (pinned via Z3_VERSION arg) or installs the apt package when BUILD_Z3_FROM_SOURCE is unset. Static link flag (-DZ3_BUILD_LIBZ3_SHARED=OFF) ensures the z3 binary is self-contained and distroless-compatible. - go-builder: CGO_ENABLED=0 build of symkerneld. - Runtime: gcr.io/distroless/static-debian12:nonroot with only the z3 binary and symkerneld binary — minimal attack surface. Closes #289
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.
Adds
deploy/Dockerfile.z3with three stages:Z3_VERSIONarg, defaultz3-4.13.4) with static linking (-DZ3_BUILD_LIBZ3_SHARED=OFF) for distroless compatibility; falls back to apt whenBUILD_Z3_FROM_SOURCEunset.CGO_ENABLED=0build ofsymkerneld.gcr.io/distroless/static-debian12:nonroot— only z3 binary + symkerneld, minimal attack surface.Closes #289