Skip to content

Commit

Permalink
Revert back to usage of zip, because tomee image does not contain jar…
Browse files Browse the repository at this point in the history
… executable
  • Loading branch information
meier-rene committed Oct 29, 2024
1 parent 9b4fa33 commit 1069f9d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down

0 comments on commit 1069f9d

Please sign in to comment.