From 1069f9d8987753cad1540b0ad496c33452537533 Mon Sep 17 00:00:00 2001 From: Rene Meier Date: Tue, 29 Oct 2024 11:20:20 +0100 Subject: [PATCH] Revert back to usage of zip, because tomee image does not contain jar executable --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dea8075..e396225 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,12 +64,20 @@ RUN cd /vol/file_databases && \ FROM tomee:10 +RUN set -eux; \ + apt-get update; \ + apt-get install -y --no-install-recommends \ + zip \ + ; \ + rm -rf /var/lib/apt/lists/* + + COPY --from=builder /MetFragRelaunched/MetFragWeb/target/MetFragWeb.war /usr/local/tomee/webapps/ COPY --from=downloader /vol/file_databases/ /vol/file_databases/ RUN printf '#!/bin/sh \n\ if [ -f "/resources/settings.properties" ] \n\ then \n\ - jar uf /usr/local/tomee/webapps/MetFragWeb.war /resources/settings.properties \n\ + zip -u /usr/local/tomee/webapps/MetFragWeb.war /resources/settings.properties \n\ fi \n\ if ! [ -z ${WEBPREFIX} ] \n\ then \n\