X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/d4207f0da06f9578a5d89f47f126ce5343c162bd..HEAD:/Dockerfile diff --git a/Dockerfile b/Dockerfile index ee33b0e..f5b2af6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM golang:1.22 AS builder WORKDIR /app COPY . . -RUN CGO_ENABLED=0 go build -o /app/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server +RUN CGO_ENABLED=0 go build -ldflags "-X main.version=$(git describe --exact-match --tags)" -o /app/server cmd/mobius-hotline-server/main.go && chmod a+x /app/server FROM scratch