From 4b7339fcd026041e348d44550abb7407bbc8c247 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 31 Aug 2023 09:13:19 +0200 Subject: [PATCH] add unpaper --- Dockerfile | 5 ++++- README.md | 9 ++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 792ad83..610167c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,7 +43,9 @@ RUN apk add --no-cache \ gpg \ tesseract-ocr \ tesseract-ocr-data-deu \ - tesseract-ocr-data-eng + tesseract-ocr-data-eng \ + unpaper \ + font-liberation COPY --from=builder /install /var/lib/paperless @@ -55,6 +57,7 @@ RUN mkdir /var/lib/paperless/media RUN chown -R paperless:paperless /var/lib/paperless ENV HOME /var/lib/paperless +ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=20000 VOLUME ["/var/lib/paperless/media", "/var/lib/paperless/consume", "/var/lib/paperless/data"] EXPOSE 8000 diff --git a/README.md b/README.md index d75ac39..c4eefc2 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,17 @@ [paperless-ngx](https://github.com/paperless-ngx/paperless-ngx) document management system. +# Initialization + +Inside the container run +`/var/lib/paperless/env/bin/python3 /var/lib/paperless/src/manage.py createsuperuser` +and fill in the values. + # Volumes -- `/var/lib/paperless/media/` - `/var/lib/paperless/consume/` +- `/var/lib/paperless/data/` +- `/var/lib/paperless/media/` # Environment Variables