From be5bbdd3bc6f184c5f475296a618d1f3f31b3778 Mon Sep 17 00:00:00 2001 From: Ben Swinney Date: Mon, 25 Nov 2024 16:41:59 +1100 Subject: [PATCH] Copy Dockerfile to Containerfile to align with Podman --- Containerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..e9c7145 --- /dev/null +++ b/Containerfile @@ -0,0 +1,17 @@ +# Build stage - could use maven or our image +FROM maven:3.3-jdk-8 as builder + +COPY . . +RUN mvn clean install + +FROM openliberty/open-liberty:springBoot2-ubi-min as staging + +COPY --chown=1001:0 --from=builder /target/cloudnativesampleapp-1.0-SNAPSHOT.jar /config/app.jar +RUN springBootUtility thin \ + --sourceAppPath=/config/app.jar \ + --targetThinAppPath=/config/dropins/spring/thinClinic.jar \ + --targetLibCachePath=/opt/ol/wlp/usr/shared/resources/lib.index.cache + + + +