From a0b987aa14ea5d59b43cba7254ec377cba5a21a7 Mon Sep 17 00:00:00 2001 From: Mats Bovin Date: Wed, 15 Nov 2023 09:59:12 +0100 Subject: [PATCH] Add dockerize to Dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 79bf8838..ac989678 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,3 +8,10 @@ COPY sbdi/data/config/charts.json /data/ala-hub/config/charts.json COPY sbdi/data/config/grouped_facets_default.json /data/ala-hub/config/grouped_facets_default.json COPY build/libs/ala-hub-*-plain.war $CATALINA_HOME/webapps/ROOT.war + +ENV DOCKERIZE_VERSION v0.7.0 + +RUN apt-get update \ + && apt-get install -y wget \ + && wget -O - https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | tar xzf - -C /usr/local/bin \ + && apt-get autoremove -yqq --purge wget && rm -rf /var/lib/apt/lists/*