mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-31 09:30:12 +00:00 
			
		
		
		
	To make it work as before, some env variables are necessary to be available to the consumedir container. It's only needed there, but since the env file exists, they are now listed there. Also partially reverts the consumedir.dockerfile. Using the base-image makes sure that all build images are created from the same sources.
		
			
				
	
	
		
			22 lines
		
	
	
		
			561 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			561 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| ## CONSUMEDIR
 | |
| 
 | |
| ARG VERSION=
 | |
| ARG REPO=
 | |
| 
 | |
| # hack to use args in from
 | |
| FROM ${REPO}:base-binaries-${VERSION} as docspell-base-binaries
 | |
| 
 | |
| 
 | |
| FROM ${REPO}:base-${VERSION}
 | |
| 
 | |
| RUN apk add --no-cache curl bash inotify-tools
 | |
| 
 | |
| COPY --from=docspell-base-binaries /opt/docspell-tools /opt/docspell-tools
 | |
| COPY consumedir-entrypoint.sh  /opt/docspell-tools/consumedir/
 | |
| RUN chmod 755 /opt/docspell-tools/**/*.sh
 | |
| 
 | |
| ENTRYPOINT ["bash", "/opt/docspell-tools/consumedir/consumedir-entrypoint.sh"]
 | |
| 
 | |
| HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=10s \
 | |
|   CMD pgrep bash
 |