mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Upgrade Docker image to Alpine 3.11
This make tesseract 4.1 avaialbe, which fixes some things like infinite processing loops on some documents: tesseract-ocr/tesseract#2288
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
FROM alpine:3.10
 | 
			
		||||
FROM alpine:3.11
 | 
			
		||||
 | 
			
		||||
LABEL maintainer="The Paperless Project https://github.com/the-paperless-project/paperless" \
 | 
			
		||||
      contributors="Guy Addadi <addadi@gmail.com>, Pit Kleyersburg <pitkley@googlemail.com>, \
 | 
			
		||||
@@ -52,6 +52,9 @@ RUN apk add --no-cache \
 | 
			
		||||
    adduser -D -u 1000 -G paperless -h /usr/src/paperless paperless && \
 | 
			
		||||
    chown -Rh paperless:paperless /usr/src/paperless && \
 | 
			
		||||
    mkdir -p $PAPERLESS_EXPORT_DIR && \
 | 
			
		||||
# Avoid setrlimit warnings
 | 
			
		||||
# See: https://gitlab.alpinelinux.org/alpine/aports/issues/11122
 | 
			
		||||
    echo 'Set disable_coredump false' >> /etc/sudo.conf && \
 | 
			
		||||
# Setup entrypoint
 | 
			
		||||
    chmod 755 /sbin/docker-entrypoint.sh
 | 
			
		||||
 | 
			
		||||
@@ -67,4 +70,4 @@ COPY data/ /usr/src/paperless/data/
 | 
			
		||||
COPY media/ /usr/src/paperless/media/
 | 
			
		||||
 | 
			
		||||
# Collect static files
 | 
			
		||||
RUN sudo -HEu paperless /usr/src/paperless/src/manage.py collectstatic --clear --no-input
 | 
			
		||||
RUN sudo -HEu paperless /usr/src/paperless/src/manage.py collectstatic --clear --no-input
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user