chore: improvements to Containerfile

This commit is contained in:
ITQ
2025-12-19 20:28:26 +03:00
parent d2d5bfbe34
commit d7320f2198
+2 -2
View File
@@ -30,8 +30,8 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=${CGO_ENABLED} \ CGO_ENABLED=${CGO_ENABLED} \
GOOS=${GOOS} \ GOOS=${GOOS} \
GOARCH=${GOARCH} \ GOARCH=${GOARCH} \
go build -trimpath \ go build -a -installsuffix cgo -trimpath \
-ldflags "-s -w -X main.BuildTime=${BUILD_TIME} -X main.Version=${VERSION}" \ -ldflags '-extldflags "-static" -s -w -X main.BuildTime=${BUILD_TIME} -X main.Version=${VERSION}' \
-o /out/${SERVICE} ./cmd/${SERVICE} && \ -o /out/${SERVICE} ./cmd/${SERVICE} && \
chmod +x /out/${SERVICE} chmod +x /out/${SERVICE}