Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Winkler committed Nov 18, 2020
2 parents 8395bdf + 07e2ff0 commit 8f5809d
Show file tree
Hide file tree
Showing 34 changed files with 480 additions and 346 deletions.
82 changes: 0 additions & 82 deletions Dockerfile

This file was deleted.

5 changes: 5 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[[source]]
url = "https://www.piwheels.org/simple"
verify_ssl = true
name = "piwheels"

[packages]
django = "~=3.1"
pillow = "*"
Expand Down
51 changes: 43 additions & 8 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 7 additions & 10 deletions docker/local/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,25 @@
### Back end ###
###############################################################################

FROM ubuntu:20.04
FROM python:3.7-slim

WORKDIR /usr/src/paperless/

COPY Pipfile* ./
COPY requirements.txt ./

#Dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND="noninteractive" apt-get -y --no-install-recommends install \
&& apt-get -y --no-install-recommends install \
build-essential \
curl \
ghostscript \
gnupg \
imagemagick \
libatlas-base-dev \
libmagic-dev \
libpoppler-cpp-dev \
libpq-dev \
optipng \
python3 \
python3-dev \
python3-pip \
sudo \
tesseract-ocr \
tesseract-ocr-eng \
Expand All @@ -32,10 +30,9 @@ RUN apt-get update \
tesseract-ocr-spa \
tzdata \
unpaper \
&& pip3 install --upgrade pipenv supervisor setuptools \
&& pipenv install --system --deploy \
&& pipenv --clear \
&& apt-get -y purge build-essential python3-pip python3-dev \
&& pip3 install --upgrade supervisor setuptools \
&& pip install --no-cache-dir -r requirements.txt \
&& apt-get -y purge build-essential \
&& apt-get -y autoremove --purge \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /var/log/supervisord /var/run/supervisord
Expand Down
Loading

0 comments on commit 8f5809d

Please sign in to comment.