Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

new Dockerfile fixes #21

Jonas Winklerf149d3d10e43
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