mezzotre/Dockerfile
polpetta cea9f3222a
All checks were successful
continuous-integration/drone/push Build is passing
chore: add drone-ci-tests and docker build (#1)
Co-authored-by: Davide Polonio <poloniodavide@gmail.com>
Reviewed-on: #1
Co-authored-by: polpetta <polpetta@poldebra.me>
Co-committed-by: polpetta <polpetta@poldebra.me>
2023-03-27 17:16:29 +02:00

19 lines
424 B
Docker

ARG DEBUG_BUILD
FROM eclipse-temurin:17-jdk as builder
WORKDIR /build
COPY . /build
RUN ./mvnw package -B -DskipTests=true \
-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
ENTRYPOINT ["java", "-jar", "/opt/mezzotre.jar"]