From 51051377ff77663cb1b03944aeca7821d43d13ac Mon Sep 17 00:00:00 2001 From: Willy Date: Thu, 2 Feb 2023 20:14:19 +0100 Subject: [PATCH] temporarily log version/commit --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 58f1d204..a490fb4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,7 @@ COPY . . COPY --from=frontend /statping/dist/ ./source/dist/ RUN go install github.com/GeertJohan/go.rice/rice@latest RUN cd source && rice embed-go +RUN echo $VERSION $COMMIT RUN go build -a -ldflags "-s -w -extldflags -static -X \"main.VERSION=${VERSION}\" -X main.COMMIT=${COMMIT}" -o statping --tags "netgo linux" ./cmd RUN chmod a+x statping && mv statping /go/bin/statping # /go/bin/statping - statping binary