blob: e9cb652fb88c422528cb83bec20bad5268bf7d43 [file] [log] [blame]
# Note: this is required to run the container as non-root.
# Update:
# export VERSION=1.7.0
# docker build --build-arg VERSION -t registry.k0.hswaw.net/informatic/paperless-ngx:$VERSION .
# docker push registry.k0.hswaw.net/informatic/paperless-ngx:$VERSION
ARG VERSION=1.17.4
FROM ghcr.io/paperless-ngx/paperless-ngx:${VERSION}
# Install polish tesseract training data
RUN apt-get update && apt-get install -y tesseract-ocr-pol && rm -rf /var/lib/apt/lists/*
# Remove privilege dropping and use paperless user directly everywhere
RUN 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