diff --git a/camunda-carbon-reductor-c7/Dockerfile b/camunda-carbon-reductor-c7/Dockerfile index c97dd41..99f531c 100644 --- a/camunda-carbon-reductor-c7/Dockerfile +++ b/camunda-carbon-reductor-c7/Dockerfile @@ -1,9 +1,9 @@ -FROM maven:3.8.3-openjdk-17 AS BUILD +FROM maven:3.8.3-openjdk-17 AS build COPY . . RUN mvn clean package -DskipTests -FROM openjdk:17.0.1-jdk-slim AS RUN +FROM openjdk:17.0.1-jdk-slim AS run -COPY --from=BUILD camunda-carbon-reductor-c7/target/camunda-carbon-reductor-c7-*.jar camunda-carbon-reductor-c7.jar +COPY --from=build camunda-carbon-reductor-c7/target/camunda-carbon-reductor-c7-*.jar camunda-carbon-reductor-c7.jar ENTRYPOINT ["java", "-jar", "camunda-carbon-reductor-c7.jar"] \ No newline at end of file diff --git a/camunda-carbon-reductor-c8/Dockerfile b/camunda-carbon-reductor-c8/Dockerfile index 4dbcffc..33ba77d 100644 --- a/camunda-carbon-reductor-c8/Dockerfile +++ b/camunda-carbon-reductor-c8/Dockerfile @@ -1,9 +1,9 @@ -FROM maven:3.8.3-openjdk-17 AS BUILD +FROM maven:3.8.3-openjdk-17 AS build COPY . . RUN mvn clean package -DskipTests -FROM openjdk:17.0.1-jdk-slim AS RUN +FROM openjdk:17.0.1-jdk-slim AS run -COPY --from=BUILD camunda-carbon-reductor-c8/target/camunda-carbon-reductor-c8-*.jar camunda-carbon-reductor-c8.jar +COPY --from=build camunda-carbon-reductor-c8/target/camunda-carbon-reductor-c8-*.jar camunda-carbon-reductor-c8.jar ENTRYPOINT ["java", "-jar", "camunda-carbon-reductor-c8.jar"] \ No newline at end of file