aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-07-11 13:56:25 +0200
committerGitHub <noreply@github.com>2023-07-11 13:56:25 +0200
commit99f94fc73513ca9a9eccd859ce61487f7379a7b1 (patch)
tree49656aa527bea1ba31d063a4203f5a44d508c0f0 /Dockerfile
parent69b2069dea160faff6b2b13bb3d660037f12649d (diff)
Add revision to version string (#3147)
Since the removal of `build.sh`, we don't include any information about the revision Dendrite was build from. Since go1.18, the revision a binary was build from is automatically included, so we can try to get that instead. This also adds a `dendrite_up` metric showing the current version (`dendrite_up{version="0.13.1+c796f20"} 1`) Closes #2993
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 2487ea5b..4ee20933 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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