Display Git Version in Angular UI via Build-Time Injection
This commit is contained in:
committed by
Aditya Chandel
parent
29eb9d305d
commit
1c5ebea70f
@@ -7,6 +7,9 @@ COPY ./booklore-ui/package.json ./booklore-ui/package-lock.json ./
|
||||
RUN npm install --force
|
||||
COPY ./booklore-ui /angular-app/
|
||||
|
||||
ARG UI_VERSION=development
|
||||
RUN echo "export const version = '${UI_VERSION}';" > /angular-app/src/environments/version.ts
|
||||
|
||||
RUN npm run build --configuration=production
|
||||
|
||||
# Stage 2: Build the Spring Boot app with Gradle
|
||||
|
||||
Reference in New Issue
Block a user