All checks were successful
Productdefinitions Build & Deploy / deploy (push) Successful in 1m23s
21 lines
565 B
Docker
21 lines
565 B
Docker
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 \
|
|
&& cd /tmp/lib/OMDSServiceDefinition \
|
|
&& mvn clean install -DskipTests
|
|
|
|
COPY pom.xml .
|
|
COPY server-app/pom.xml server-app/
|
|
|
|
COPY . .
|
|
|
|
RUN mvn clean install -DskipTests -pl server-app -am
|
|
|
|
FROM eclipse-temurin:21-jre-alpine
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /productdefinitions/server-app/target/server-app-*.jar app.jar
|
|
|
|
EXPOSE 9080
|
|
ENTRYPOINT ["java", "-jar", "app.jar"] |