From 6a5d1cd1ae15dcc2ddc1b0ea04d423cd6fa514b3 Mon Sep 17 00:00:00 2001 From: Weasy Date: Thu, 11 Jun 2020 20:21:00 +0200 Subject: [PATCH] Use JDK15 alpine image as base Update base image to use an Alpine based JDK image to minimize the storage footprint. I changed the package manager commands accordingly. Furthermore, did i change `MAINTAINER` to `LABEL maintainer=` because `MAINTAINER` is deprecated. I tested the image locally on my machine and so far everything works as intended. --- Dockerfile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index b1c9577..5873edc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,11 @@ # LogicalDOC Document Management System ( https://www.logicaldoc.com ) -FROM openjdk:11-jdk +FROM openjdk:15-jdk-alpine -MAINTAINER LogicalDOC +LABEL maintainer="LogicalDOC " # set default variables for LogicalDOC install ENV LDOC_VERSION="8.3.4" ENV LDOC_MEMORY="2000" -ENV DEBIAN_FRONTEND="noninteractive" ENV CATALINA_HOME="/opt/logicaldoc/tomcat" ENV DB_ENGINE="mysql" ENV DB_HOST="mysql-ld" @@ -25,18 +24,15 @@ COPY auto-install.j2 /opt/logicaldoc COPY wait-for-it.sh / COPY wait-for-postgres.sh / -# prepare system for java installation (to be removed) -RUN apt-get update && \ - apt-get -y install software-properties-common - # Packages needed to install LogicalDOC CE -RUN apt-get -y install \ +RUN apk add \ + bash \ curl \ unzip \ imagemagick \ ghostscript \ - python-jinja2 \ - python-pip \ + py3-jinja2 \ + py3-pip \ mysql-client \ postgresql-client \ vim \ @@ -53,7 +49,7 @@ RUN curl -L https://sourceforge.net/projects/logicaldoc/files/distribution/Logic # rm /opt/logicaldoc/logicaldoc-community-installer-${LDOC_VERSION}.zip # Install j2cli for the transformation of the templates (Jinja2) -RUN pip install j2cli +RUN pip3 install j2cli #volumes for persistent storage VOLUME /opt/logicaldoc/conf