File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ COPY --from=builder-ui /workspace/dist internal/server/dist
45
45
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
46
46
ARG VERSION
47
47
ENV GOCACHE=/root/.cache/go-build
48
- RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a \
49
- -ldflags="\
48
+ RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build \
49
+ -ldflags="-w -s \
50
50
-X ${PACKAGE}/internal/version.Version=${VERSION} \
51
51
-X ${PACKAGE}/internal/version.CommitHash=${COMMIT_HASH} \
52
52
-X ${PACKAGE}/internal/version.BuildTimestamp=${BUILD_TIMESTAMP}" \
You can’t perform that action at this time.
0 commit comments