Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use JDK15 alpine image as base #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# LogicalDOC Document Management System ( https://www.logicaldoc.com )
FROM openjdk:11-jdk
FROM openjdk:15-jdk-alpine

MAINTAINER LogicalDOC <[email protected]>
LABEL maintainer="LogicalDOC <[email protected]>"

# 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"
Expand All @@ -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 \
Expand All @@ -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
Expand Down