From 40ee1e46445dcaf096592e387c058624b5751f29 Mon Sep 17 00:00:00 2001 From: "Andrew J. Mauer" Date: Wed, 12 Feb 2020 17:35:02 -0500 Subject: [PATCH] don't copy all of target, just ears and wars --- incubator/java-openliberty/image/project/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/incubator/java-openliberty/image/project/Dockerfile b/incubator/java-openliberty/image/project/Dockerfile index 0493472e4..e857f3a63 100644 --- a/incubator/java-openliberty/image/project/Dockerfile +++ b/incubator/java-openliberty/image/project/Dockerfile @@ -73,7 +73,6 @@ COPY --chown=1001:0 --from=compile /config/ /config/ # 2d) Changes to the application binary -COPY --chown=1001:0 --from=compile /project/user-app/target/* /tmp/wars/ -RUN if [ -e /tmp/wars/*.war ]; then cp /tmp/wars/*.war /config/apps; fi && if [ -e /tmp/wars/*.ear ]; then cp /tmp/wars/*.ear /config/apps; fi && chmod -R 777 /tmp/wars && rm -rf /tmp/wars +COPY --chown=1001:0 --from=compile /project/user-app/target/*.[ew]ar /config/apps RUN configure.sh