fixup! Add version key to /stats and more arguments
Some checks failed
CI / build (push) Failing after 26s

This commit is contained in:
Fijxu 2024-10-29 19:42:29 -03:00
parent 5101648c94
commit e016bdaebf
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -2,9 +2,10 @@ FROM golang:alpine AS build
WORKDIR /app/
RUN apk add --no-cache build-base libwebp-dev
RUN apk add --no-cache build-base libwebp-dev git
COPY . .
COPY ./.git/ ./.git/
RUN --mount=type=cache,target=/root/.cache/go-build \
go build -ldflags "-s -w -X 'main.version=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)'"