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.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user