Add git, remove .git from ignore so go build can get the revision

This commit is contained in:
Till Faelligen 2023-07-10 10:24:36 +02:00
parent c796f20d1c
commit 2063074ac7
No known key found for this signature in database
GPG key ID: ACCDC9606D472758
2 changed files with 2 additions and 3 deletions

View file

@ -1,3 +1,2 @@
bin
*.wasm
.git

View file

@ -4,7 +4,7 @@
# base installs required dependencies and runs go mod download to cache dependencies
#
FROM --platform=${BUILDPLATFORM} docker.io/golang:1.20-alpine AS base
RUN apk --update --no-cache add bash build-base curl
RUN apk --update --no-cache add bash build-base curl git
#
# build creates all needed binaries