chore: improvements to Containerfile
This commit is contained in:
+2
-2
@@ -30,8 +30,8 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||
CGO_ENABLED=${CGO_ENABLED} \
|
||||
GOOS=${GOOS} \
|
||||
GOARCH=${GOARCH} \
|
||||
go build -trimpath \
|
||||
-ldflags "-s -w -X main.BuildTime=${BUILD_TIME} -X main.Version=${VERSION}" \
|
||||
go build -a -installsuffix cgo -trimpath \
|
||||
-ldflags '-extldflags "-static" -s -w -X main.BuildTime=${BUILD_TIME} -X main.Version=${VERSION}' \
|
||||
-o /out/${SERVICE} ./cmd/${SERVICE} && \
|
||||
chmod +x /out/${SERVICE}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user