This commit is contained in:
Aditya Chandel
2025-11-30 18:15:03 -07:00
committed by GitHub
parent 0c9409b087
commit 132e3e3f92

View File

@@ -14,7 +14,7 @@ COPY ./booklore-ui /angular-app/
RUN npm run build --configuration=production
# Stage 2: Build the Spring Boot app with Gradle
FROM gradle:9.1-jdk25-alpine AS springboot-build
FROM gradle:8.14.3-jdk21-alpine AS springboot-build
WORKDIR /springboot-app
@@ -29,7 +29,7 @@ RUN apk add --no-cache yq && \
RUN gradle clean build -x test
# Stage 3: Final image
FROM eclipse-temurin:25-jre-alpine
FROM eclipse-temurin:21.0.9_10-jre-alpine
ARG APP_VERSION
ARG APP_REVISION
@@ -43,7 +43,7 @@ LABEL org.opencontainers.image.title="BookLore" \
org.opencontainers.image.version=$APP_VERSION \
org.opencontainers.image.revision=$APP_REVISION \
org.opencontainers.image.licenses="GPL-3.0" \
org.opencontainers.image.base.name="docker.io/library/eclipse-temurin:25-jre-alpine"
org.opencontainers.image.base.name="docker.io/library/eclipse-temurin:21.0.9_10-jre-alpine"
RUN apk update && apk add nginx gettext su-exec