From 9c4fd12c6f443f5598ca8bd925a815a82b5f1617 Mon Sep 17 00:00:00 2001 From: Vahn Gomes Date: Fri, 13 Oct 2023 12:26:30 -0400 Subject: [PATCH] Fix docker build versioning --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0aaba868..42c6a77a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /app COPY .git/ .git/ # Get the git project version and set it as an environment variable -RUN VERSION=$(git describe --tags --always --dirty) +RUN VERSION=$(git describe --tags --always HEAD) # Save git version to an environment variable ARG GIT_VERSION=$(VERSION) @@ -29,7 +29,7 @@ WORKDIR /app/backend COPY backend/package*.json ./ RUN npm install COPY backend/ . -RUN cd ../ && git describe --tags --always --dirty > backend/version +RUN cd ../ && git describe --tags --always HEAD > backend/version # Use Apache to serve the frontend and proxy to the backend FROM httpd:2.4