blob: e9cb652fb88c422528cb83bec20bad5268bf7d43 [file] [log] [blame]
Piotr Dobrowolski7ad415f2022-04-30 12:55:26 +02001# Note: this is required to run the container as non-root.
2
3# Update:
4# export VERSION=1.7.0
5# docker build --build-arg VERSION -t registry.k0.hswaw.net/informatic/paperless-ngx:$VERSION .
6# docker push registry.k0.hswaw.net/informatic/paperless-ngx:$VERSION
7
Piotr Dobrowolski0bb2fca2023-10-10 00:42:03 +02008ARG VERSION=1.17.4
Piotr Dobrowolski7ad415f2022-04-30 12:55:26 +02009FROM ghcr.io/paperless-ngx/paperless-ngx:${VERSION}
10
11# Install polish tesseract training data
12RUN apt-get update && apt-get install -y tesseract-ocr-pol && rm -rf /var/lib/apt/lists/*
13
14# Remove privilege dropping and use paperless user directly everywhere
15RUN sed -i 's/gosu paperless//g' /sbin/docker-entrypoint.sh && sed -i -e 's;user=.*;;g' -e 's;logfile=/var/.*;logfile=/dev/null;g' /etc/supervisord.conf