From f149d3d10e43f422e3b41b1e2cd4198b6ee53bda Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Thu, 5 Nov 2020 11:23:58 +0100 Subject: [PATCH] new Dockerfile fixes #21 --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b3a0f7ef3..015d511d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN node_modules/.bin/ng build --prod --output-hashing none --sourceMap=false ### Back end ### ############################################################################### -FROM python:3.8-slim +FROM ubuntu:20.04 WORKDIR /usr/src/paperless/ @@ -24,7 +24,7 @@ COPY Pipfile* ./ #Dependencies RUN apt-get update \ - && apt-get -y --no-install-recommends install \ + && DEBIAN_FRONTEND="noninteractive" apt-get -y --no-install-recommends install \ anacron \ build-essential \ curl \ @@ -35,6 +35,9 @@ RUN apt-get update \ libpoppler-cpp-dev \ libpq-dev \ optipng \ + python3 \ + python3-dev \ + python3-pip \ sudo \ tesseract-ocr \ tesseract-ocr-eng \ @@ -44,10 +47,10 @@ RUN apt-get update \ tesseract-ocr-spa \ tzdata \ unpaper \ - && pip install --upgrade pipenv supervisor \ + && pip3 install --upgrade pipenv supervisor setuptools \ && pipenv install --system --deploy \ && pipenv --clear \ - && apt-get -y purge build-essential \ + && apt-get -y purge build-essential python3-pip python3-dev \ && apt-get -y autoremove --purge \ && rm -rf /var/lib/apt/lists/* \ && mkdir /var/log/supervisord /var/run/supervisord