Since ClamAV starts to offer Docker containers this PR introduces said containers so we don't need to build the container on our own anymore. This was an easy task until v0.104, but then ClamAV changed its buildprocess to use cmake and with v0.105 it also needs the Rust toolchain -> https://docs.clamav.net/manual/Installing/Installing-from-source-Unix.html#ubuntu--debian Here are the main changes for the new container Creates clamd-db-vol-1 volume Still uses the same config files Downloads ClamAV databases in said volume Smaller container footprint 13MB vs 150MB --- * [ClamAV] Move to official ClamAV Docker container * [ClamAV] Remove vim + nano * [ClamAV] Use normal version in docker-compose
		
			
				
	
	
		
			15 lines
		
	
	
		
			294 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			294 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM clamav/clamav:0.104.2-2_base
 | |
| 
 | |
| LABEL maintainer "André Peters <andre.peters@servercow.de>"
 | |
| 
 | |
| RUN apk upgrade --no-cache \
 | |
|   && apk add --update --no-cache \
 | |
|   rsync \
 | |
|   bind-tools \
 | |
|   bash 
 | |
| 
 | |
| COPY clamd.sh ./
 | |
| RUN chmod +x /sbin/tini
 | |
| 
 | |
| ENTRYPOINT []
 | |
| CMD ["/sbin/tini", "-g", "--", "/clamd.sh"] |