openaire-search-api-v2/Dockerfile

28 lines
398 B
Docker
Raw Normal View History

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
WORKDIR /app
2024-03-14 14:27:53 +01:00
COPY --from=MAVEN_BUILD /build/target/*.jar /app/app.jar
VOLUME /tmp
EXPOSE 8080
2024-03-14 14:27:53 +01:00
ENTRYPOINT ["java", "-jar", "/app/app.jar"]