Files
int-layer/Dockerfile
KARLA ITZEL SALADO 24cebae2e3 Correccion error 500
2026-01-08 00:34:37 +00:00

15 lines
637 B
Docker

# Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose.
# Your use of it is subject to your agreement with Google.
# Java 21.0.6
# 'jammy' refers to Ubuntu 22.04 LTS, which is a stable and widely used base.
FROM maven:3.9.6-eclipse-temurin-21 AS builder
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN mvn -B clean install -DskipTests -Dmaven.javadoc.skip=true
FROM registry.access.redhat.com/ubi9/openjdk-21-runtime
COPY --from=builder /app/target/app-jovenes-service-orchestrator-0.0.1-SNAPSHOT.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]