Fix version console log when compiling for Docker

This commit is contained in:
kolaente 2020-05-09 21:57:59 +02:00
parent ce1bfba5fd
commit 15edfe0a49
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +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 && \
echo '{"VERSION": "'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'"}' > src/version.json && \
yarn run build
# Stage 2: copy