diff --git a/Dockerfile b/Dockerfile index 0108938..5f5f7c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM maven:3.9-eclipse-temurin-21 as builder +FROM maven:3.9-eclipse-temurin-21 AS builder WORKDIR /app COPY ./pom.xml ./pom.xml RUN mvn dependency:go-offline -B @@ -6,7 +6,7 @@ COPY ./src ./src RUN mvn package && cp target/*.jar application.jar RUN java -Djarmode=layertools -jar application.jar extract -FROM cockroachdb/cockroach:latest as cockroach +FROM cockroachdb/cockroach:latest AS cockroach FROM eclipse-temurin:21-jdk COPY --from=builder /app/dependencies/ ./