mezzotre/Dockerfile

19 lines
424 B
Docker
Raw Normal View History

2023-03-21 18:09:06 +01:00
ARG DEBUG_BUILD
2023-03-26 22:44:17 +02:00
FROM eclipse-temurin:17-jdk as builder
2023-03-21 18:09:06 +01:00
WORKDIR /build
COPY . /build
2023-03-26 22:44:17 +02:00
RUN ./mvnw package -B -DskipTests=true \
2023-03-21 18:09:06 +01:00
-Dmaven.test.skip=true \
-Dmaven.site.skip=true \
-Dmaven.javadoc.skip=true | grep -Ev '(Downloading|Downloaded)'
FROM gcr.io/distroless/java17:${DEBUG_BUILD}nonroot
COPY --from=builder /build/target/mezzotre.jar /opt/mezzotre.jar
2023-03-27 13:19:58 +02:00
ENTRYPOINT ["java", "-jar", "/opt/mezzotre.jar"]