From 963a09417a3aaccfafc904a22fde7cbcb0aeb5f7 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Fri, 13 Jun 2025 14:04:52 +0400 Subject: [PATCH] Compile app as static binary --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5b11e00..0977ca9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM golang:${GOLANG_VERSION} as build COPY . /src WORKDIR /src -RUN go build ./cmd/github-release +RUN CGO_ENABLED=0 go build -tags netgo,osusergo ./cmd/github-release FROM scratch