mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
new Dockerfile fixes #21
This commit is contained in:
parent
7d8562b1d4
commit
f149d3d10e
11
Dockerfile
11
Dockerfile
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user