From f13c076862602b7d67d42d75028c0e2e772ee63b Mon Sep 17 00:00:00 2001 From: "Michael Vorburger.ch" Date: Tue, 23 Jul 2019 10:17:54 +0200 Subject: [PATCH] rm git & JDK from Dockerfile Now that we separated the build and runtime containers, we can have only a JRE but not a JDK in the runtime container (whereas the builder container will still have a JRE). This makes for a smaller, and more importantly, more secure, runtime container image. Also removing git from runtime container, as it's not used. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 43501619f..77f01dc63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN ./gradlew clean war FROM bitnami/tomcat:7.0.94 as fineract USER root -RUN apt-get update -qq && apt-get install -y git openjdk-8-jdk wget +RUN apt-get update -qq && apt-get install -y wget ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/jre COPY --from=builder /fineract/build/libs/fineract-provider.war /opt/bitnami/tomcat/webapps