mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	added bash and moved all dev packages to be with virtual alpine env that
is removed after python libraries installation
This commit is contained in:
		
							parent
							
								
									20eeda19b8
								
							
						
					
					
						commit
						771c8bbbe4
					
				@ -2,8 +2,10 @@ FROM alpine:latest
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Install dependencies
 | 
					# Install dependencies
 | 
				
			||||||
RUN apk --no-cache --update add \
 | 
					RUN apk --no-cache --update add \
 | 
				
			||||||
        python3 python3-dev gcc musl-dev gnupg zlib-dev jpeg-dev libmagic \
 | 
					        python3 gnupg libmagic bash \
 | 
				
			||||||
        sudo tesseract-ocr imagemagick ghostscript unpaper
 | 
					        sudo tesseract-ocr imagemagick ghostscript unpaper && \
 | 
				
			||||||
 | 
					    apk --no-cache add --virtual .build-dependencies \
 | 
				
			||||||
 | 
					        python3-dev gcc musl-dev zlib-dev jpeg-dev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Install python dependencies
 | 
					## Install python dependencies
 | 
				
			||||||
RUN python3 -m ensurepip && \
 | 
					RUN python3 -m ensurepip && \
 | 
				
			||||||
@ -46,4 +48,7 @@ RUN chmod 755 /sbin/docker-entrypoint.sh
 | 
				
			|||||||
VOLUME ["/usr/src/paperless/data", "/usr/src/paperless/media", "/consume", "/export"]
 | 
					VOLUME ["/usr/src/paperless/data", "/usr/src/paperless/media", "/consume", "/export"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
 | 
					ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Remove build dependencies
 | 
				
			||||||
 | 
					RUN apk del .build-dependencies
 | 
				
			||||||
CMD ["--help"]
 | 
					CMD ["--help"]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user