Skip to content

Commit

Permalink
Fix docker build versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Codycody31 committed Oct 13, 2023
1 parent cab7eaf commit 9c4fd12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit 9c4fd12

Please sign in to comment.