You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			26 lines
		
	
	
		
			816 B
		
	
	
	
		
			Docker
		
	
			
		
		
	
	
			26 lines
		
	
	
		
			816 B
		
	
	
	
		
			Docker
		
	
| FROM python:3
 | |
| 
 | |
| RUN export DEBIAN_FRONTEND=noninteractive \
 | |
|  && apt-get update \
 | |
|  && apt-get install -y --no-install-recommends \
 | |
|       postfix dovecot-imapd dovecot-sqlite dovecot-lmtpd \
 | |
|       dovecot-sieve dovecot-managesieved \
 | |
|       dovecot-antispam spamassassin spamc clamav \
 | |
|       supervisor rsyslog nginx \
 | |
|  && apt-get clean
 | |
| 
 | |
| # When installed non-interactively, the file does not get copied to the
 | |
| # postfix chroot, thus causing smtpd to fail.
 | |
| RUN cp /etc/services /var/spool/postfix/etc/
 | |
| 
 | |
| # Install the Web admin panel
 | |
| COPY admin /admin
 | |
| RUN pip install -r /admin/requirements.txt 
 | |
| 
 | |
| # Load the configuration
 | |
| COPY config /etc/
 | |
| 
 | |
| # Explicitely specify the configuration file to avoid problems when
 | |
| # the default configuration path changes.
 | |
| CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
 |