Add logging frontend version to console on startup

This commit is contained in:
kolaente 2020-05-09 21:39:46 +02:00
parent 48df1a44e8
commit 8789135eed
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
4 changed files with 9 additions and 0 deletions

View file

@ -8,6 +8,7 @@ COPY . ./
RUN \
# Build the frontend
yarn install --frozen-lockfile && \
echo '{"VERSION": "'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'"}' > version.json && \
yarn run build
# Stage 2: copy