2026-01-29 15:55:35 +01:00
|
|
|
FROM maven:3.9-eclipse-temurin-21 AS build
|
|
|
|
|
WORKDIR /productdefinitions
|
|
|
|
|
|
|
|
|
|
RUN git clone -b feature/Produkte --single-branch https://bitbucket.org/omds/omdsservicedefinitions.git /tmp/lib \
|
2026-01-30 13:29:16 +01:00
|
|
|
&& cd /tmp/lib/OMDSServiceDefinition \
|
|
|
|
|
&& mvn clean install -DskipTests
|
2026-01-29 15:55:35 +01:00
|
|
|
|
2026-01-30 13:29:16 +01:00
|
|
|
COPY pom.xml .
|
|
|
|
|
COPY server-app/pom.xml server-app/
|
|
|
|
|
|
2026-01-29 17:00:15 +01:00
|
|
|
COPY . .
|
2026-01-29 15:55:35 +01:00
|
|
|
|
2026-01-30 13:29:16 +01:00
|
|
|
RUN mvn clean install -DskipTests -pl server-app -am
|
2026-01-29 15:55:35 +01:00
|
|
|
|
|
|
|
|
FROM eclipse-temurin:21-jre-alpine
|
2026-01-30 13:29:16 +01:00
|
|
|
WORKDIR /app
|
2026-01-29 15:55:35 +01:00
|
|
|
|
2026-01-30 13:29:16 +01:00
|
|
|
COPY --from=build /productdefinitions/server-app/target/server-app-*.jar app.jar
|
2026-01-29 15:55:35 +01:00
|
|
|
|
2026-01-30 13:29:16 +01:00
|
|
|
EXPOSE 9080
|
|
|
|
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|