Refactor Dockerfile #2
No reviewers
Labels
No labels
breaking
bug
dependency
docs
enhancement
feature
misc
refactor
security
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ElZeckos/VoiceCorn!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ft/dockerfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Builder stage: Compile Go binary with CGO enabled and static linking (using gcc, musl-dev, sqlite-dev)
Significantly reduces final image size
45897a89ebto01561f4aa8Summary: Refactors the Dockerfile from a single-stage Alpine image to a multi-stage build producing a minimal scratch image with a statically-linked Go binary.
Issues: None blocking, but note one change worth awareness:
💡 LOW - Dockerfile:5 - Undocumented Go version upgrade
Recommendations:
💡 Dockerfile - Optional improvements
Score (Code Quality): 88
Result: 👍 Good
The multi-stage build approach is a solid improvement—static linking combined with a scratch base significantly reduces image size and attack surface. The CA certificates are correctly included for TLS functionality. The Go version upgrade (1.24.2 → 1.26) should work but warrants a quick compatibility check.