Step 3: Upgrade Java Version, Maven Wrapper, and Dockerfile - Compile: SUCCESS
- pom.xml: java.version 21 → 25 - .mvn/wrapper/maven-wrapper.properties: kept Maven 3.9.15 (compatible with Java 25) - Dockerfile: build/runtime images updated to eclipse-temurin:25-jdk-alpine
This commit is contained in:
parent
101dd88ea2
commit
42ab036ee9
|
|
@ -1,5 +1,5 @@
|
||||||
# ── Fase 1: compilar ────────────────────────────────────────────
|
# ── Fase 1: compilar ────────────────────────────────────────────
|
||||||
FROM eclipse-temurin:21-jdk-alpine AS build
|
FROM eclipse-temurin:25-jdk-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY .mvn/ .mvn/
|
COPY .mvn/ .mvn/
|
||||||
COPY mvnw pom.xml ./
|
COPY mvnw pom.xml ./
|
||||||
|
|
@ -8,7 +8,7 @@ COPY src ./src
|
||||||
RUN ./mvnw clean package -DskipTests -q
|
RUN ./mvnw clean package -DskipTests -q
|
||||||
|
|
||||||
# ── Fase 2: imagen final (solo JRE) ─────────────────────────────
|
# ── Fase 2: imagen final (solo JRE) ─────────────────────────────
|
||||||
FROM eclipse-temurin:21-jre-alpine
|
FROM eclipse-temurin:25-jdk-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/target/*.jar app.jar
|
COPY --from=build /app/target/*.jar app.jar
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue