v0.1.26: версия в /health, admin health и UI; ldflags VERSION; Makefile build фикс
This commit is contained in:
+2
-1
@@ -6,7 +6,8 @@ WORKDIR /build
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o shared-sqs ./app/cmd/
|
||||
ARG VERSION=dev
|
||||
RUN CGO_ENABLED=0 go build -ldflags "-X shared-sqs/app/models.Version=${VERSION}" -o shared-sqs ./app/cmd/
|
||||
|
||||
FROM alpine:3.19
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
||||
Reference in New Issue
Block a user