debian 9.8 -- tesseract 4
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-10-14 21:51:35 +02:00
parent f8bb22df86
commit 06c8f68684

View File

@@ -4,7 +4,7 @@
# BASE_IMAGE - Bare bones image with the base packages needed to run Mayan EDMS
####
FROM debian:10-slim as BASE_IMAGE
FROM debian:9.8-slim as BASE_IMAGE
LABEL maintainer="Roberto Rosario roberto.rosario@mayan-edms.com"
@@ -31,7 +31,7 @@ apt-get update \
graphviz \
libfuse2 \
libmagic1 \
libmariadbclient-dev \
libmariadbclient18 \
libreoffice \
libpq5 \
poppler-utils \
@@ -40,7 +40,6 @@ apt-get update \
sudo \
supervisor \
git \
tesseract-ocr \
# Remove make and build dependencies
&& apt-get remove make libproxy-tools libreoffice-avmedia-backend-vlc libvlc-bin libvlc5 libvlccore9 adwaita-icon-theme gsettings-desktop-schemas libgstreamer-plugins-base1.0-0 -y \
&& apt-get autoremove -y --purge \
@@ -63,6 +62,10 @@ echo "save \"\"" >> /etc/redis/redis.conf \
# Only provision 1 database
&& echo "databases 1" >> /etc/redis/redis.conf
RUN printf "deb http://httpredir.debian.org/debian stretch-backports main non-free\ndeb-src http://httpredir.debian.org/debian stretch-backports main non-free" > /etc/apt/sources.list.d/backports.list \
&& apt-get update \
&& apt-get install -t stretch-backports -y tesseract-ocr tesseract-ocr-deu
####
# BUILDER_IMAGE - This image buildS the Python package and is discarded afterwards
####
@@ -109,7 +112,7 @@ RUN python -m virtualenv "${PROJECT_INSTALL_DIR}" \
&& . "${PROJECT_INSTALL_DIR}/bin/activate" \
&& pip install --no-cache-dir --no-use-pep517 \
librabbitmq==1.6.1 \
git+https://github.com/PyMySQL/mysqlclient-python.git \
mysql-python==1.2.5 \
psycopg2==2.7.3.2 \
redis==2.10.6 \
# psutil is needed by ARM builds otherwise gevent and gunicorn fail to start