diff --git a/docker/Dockerfile b/docker/Dockerfile index aa2a1f843c..eed441d8b2 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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