anchor.diff:  # Connect bash:
   # docker exec -it container_name bash
   
  -
   # Pull base image
  -FROM zokeber/centos
  +FROM centos:latest
   
   # Maintener
  -MAINTAINER Daniel Lopez Monagas <zokeber@gmail.com>
  +MAINTAINER Burke Azbill <dimensionquest@gmail.com>
   
   # Env
  -ENV IREDMAIL_VERSION 0.9.2
  +ENV IREDMAIL_VERSION 0.9.5-1
   ENV container docker
  +ENV HOME /root
  +WORKDIR /root
   
   # Install packages necessary:
   RUN yum update -y; \
  -    yum install -y tar bzip2 hostname rsyslog
  -
  -# Install packages neccesary to install iredmail server
  -RUN yum install -y postfix openldap openldap-clients openldap-servers maria mariadb-server mod_ldap php-common php-gd php-xml php-mysql php-ldap php-pgsql php-imap php-mbstring php-pecl-apc php-intl php-mcrypt nginx php-fpm cluebringer dovecot dovecot-pigeonhole dovecot-mysql clamav clamav-update clamav-server clamav-server-systemd amavisd-new spamassassin altermime perl-LDAP perl-Mail-SPF unrar
  -
  +    yum install -y unzip wget curl git tar bzip2 hostname rsyslog openssl epel-release; \
  +    yum -y reinstall systemd; \
  +    yum clean all
   
   # Get iredmail, extract and remove tar
   RUN mkdir -p /opt/iredmail; \
  
positive.code: #
  # iRedmail Dockerfile in CentOS 7
  #
  
  # Build:
  # docker build -t zokeber/iredmail:latest .
  #
  # Create:
  # docker create --privileged -it --restart=always -p 80:80 -p 443:443 -p 25:25 -p 587:587 -p 110:110 -p 143:143 -p 993:993 -p 995:995 -h your_domain.com --name container_name zokeber/iredmail
  #
  # Start:
  # docker start container_name
  
negative.code: ADD iredmail/config.iredmail /opt/iredmail/
  ADD iredmail/iredmail.sh /opt/iredmail/iredmail.sh
  ADD iredmail.cfg /opt/iredmail/iredmail.cfg
  ADD iredmail/create_mail_domain_SQL.sh /opt/iredmail/create_mail_domain_SQL.sh
  ADD iredmail/iredmail-install.service /etc/systemd/system/iredmail-install.service
  
  RUN chmod +x /opt/iredmail/iredmail.sh
  