new Dockerfile fixes #21

This commit is contained in:
Jonas Winkler 2020-11-05 11:23:58 +01:00
parent 7d8562b1d4
commit f149d3d10e

View File

@ -16,7 +16,7 @@ RUN node_modules/.bin/ng build --prod --output-hashing none --sourceMap=false
### Back end ### ### Back end ###
############################################################################### ###############################################################################
FROM python:3.8-slim FROM ubuntu:20.04
WORKDIR /usr/src/paperless/ WORKDIR /usr/src/paperless/
@ -24,7 +24,7 @@ COPY Pipfile* ./
#Dependencies #Dependencies
RUN apt-get update \ RUN apt-get update \
&& apt-get -y --no-install-recommends install \ && DEBIAN_FRONTEND="noninteractive" apt-get -y --no-install-recommends install \
anacron \ anacron \
build-essential \ build-essential \
curl \ curl \
@ -35,6 +35,9 @@ RUN apt-get update \
libpoppler-cpp-dev \ libpoppler-cpp-dev \
libpq-dev \ libpq-dev \
optipng \ optipng \
python3 \
python3-dev \
python3-pip \
sudo \ sudo \
tesseract-ocr \ tesseract-ocr \
tesseract-ocr-eng \ tesseract-ocr-eng \
@ -44,10 +47,10 @@ RUN apt-get update \
tesseract-ocr-spa \ tesseract-ocr-spa \
tzdata \ tzdata \
unpaper \ unpaper \
&& pip install --upgrade pipenv supervisor \ && pip3 install --upgrade pipenv supervisor setuptools \
&& pipenv install --system --deploy \ && pipenv install --system --deploy \
&& pipenv --clear \ && pipenv --clear \
&& apt-get -y purge build-essential \ && apt-get -y purge build-essential python3-pip python3-dev \
&& apt-get -y autoremove --purge \ && apt-get -y autoremove --purge \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir /var/log/supervisord /var/run/supervisord && mkdir /var/log/supervisord /var/run/supervisord