Piotr Dobrowolski | 7ad415f | 2022-04-30 12:55:26 +0200 | [diff] [blame] | 1 | # 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 Dobrowolski | 0bb2fca | 2023-10-10 00:42:03 +0200 | [diff] [blame] | 8 | ARG VERSION=1.17.4 |
Piotr Dobrowolski | 7ad415f | 2022-04-30 12:55:26 +0200 | [diff] [blame] | 9 | FROM ghcr.io/paperless-ngx/paperless-ngx:${VERSION} |
| 10 | |
| 11 | # Install polish tesseract training data |
| 12 | RUN 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 |
| 15 | 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 |