28 lines
		
	
	
		
			457 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
		
		
			
		
	
	
			28 lines
		
	
	
		
			457 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| 
								 | 
							
								FROM alpine:3
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								RUN apk add --update --no-cache \
							 | 
						||
| 
								 | 
							
								        bash \
							 | 
						||
| 
								 | 
							
								        nano \
							 | 
						||
| 
								 | 
							
								        curl \ 
							 | 
						||
| 
								 | 
							
								        postfix \
							 | 
						||
| 
								 | 
							
								        postfix-ldap \
							 | 
						||
| 
								 | 
							
								        postfix-pcre \
							 | 
						||
| 
								 | 
							
								        postfix-policyd-spf-perl \
							 | 
						||
| 
								 | 
							
								        ca-certificates
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								RUN update-ca-certificates && \
							 | 
						||
| 
								 | 
							
								    mkdir /cert && \
							 | 
						||
| 
								 | 
							
								    chown 100:101 /cert
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								COPY --chown=root:root start.sh config /
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								VOLUME /config
							 | 
						||
| 
								 | 
							
								VOLUME /cert
							 | 
						||
| 
								 | 
							
								VOLUME /var/spool/postfix
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								EXPOSE 10025/tcp
							 | 
						||
| 
								 | 
							
								EXPOSE 10465/tcp
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								USER root
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								CMD ["/start.sh"]
							 |