2024-03-14 14:27:53 +01:00
|
|
|
FROM maven:3.9.6-eclipse-temurin-21-alpine AS MAVEN_BUILD
|
|
|
|
|
|
|
|
MAINTAINER OpenAIRE AMKE
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
COPY pom.xml .
|
|
|
|
|
|
|
|
RUN mvn dependency:go-offline
|
|
|
|
|
|
|
|
COPY src ./src
|
|
|
|
|
|
|
|
RUN mvn clean package -DskipTests=true
|
|
|
|
|
|
|
|
|
|
|
|
FROM eclipse-temurin:21-jdk-alpine
|
|
|
|
|
|
|
|
RUN mkdir /app
|
2024-03-04 14:55:03 +01:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2024-03-14 14:27:53 +01:00
|
|
|
COPY --from=MAVEN_BUILD /build/target/*.jar /app/app.jar
|
|
|
|
|
2024-03-04 14:55:03 +01:00
|
|
|
VOLUME /tmp
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
2024-03-14 14:27:53 +01:00
|
|
|
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
|