chore: add build version

This commit is contained in:
2024-11-03 06:27:31 +01:00
parent 219199eccf
commit dd9df95311
3 changed files with 38 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ COPY . .
RUN go mod download
# Build
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X 'util.Version=${appVersion}'" -o /app/goma
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X 'github.com/jkaninda/goma-gateway/util.Version=${appVersion}'" -o /app/goma
FROM alpine:3.20.3
ENV TZ=UTC