FROM ubuntu:bionic-20200713
MAINTAINER Artem Shvidkiy <shvidkiy@sut.ru>
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y vim apt-utils postfix postfix-pcre libsasl2-modules \
ldap-utils postfix-ldap libnet-ldap-perl libdbd-mysql-perl mariadb-server mariadb-client php-cli \
php-fpm php-json php-gd php-curl mcrypt php-intl php-xml php-mbstring php-ldap php-mysql \
nginx-full dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-managesieved dovecot-sieve \
dovecot-ldap dovecot-mysql amavisd-new libcrypt-openssl-rsa-perl \
libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj nomarch cpio lzop cabextract \
p7zip-full rpm libmail-spf-perl unrar-free pax lrzip libclamunrar7 mlmmj python3-setuptools python3-pip \
python3-wheel python3-requests uwsgi uwsgi-plugin-python3 python3-ldap python3-pymysql php-net-ldap3 \
python3-sqlalchemy python3-dnspython python3-requests python3-pip python3-ldap python3-pymysql python-jinja2 \
python-netifaces python-pycurl python-bcrypt python-dnspython python-webpy python-mysqldb syslog-ng \
python-requests uwsgi uwsgi-plugin-python python-ldap python-mysqldb python-pymysql bzip2 acl patch cron \
tofrodos logwatch unzip bsdutils liblz4-tool distro-info-data iso-codes libapt-inst2.0 lsb-release powermgmt-base \
python-apt-common python3-apt python3-software-properties software-properties-common unattended-upgrades wget dialog libodbc1 slapd
RUN pip3 install web.py>=0.51 six>=1.15.0
ADD init-functions /lib/lsb/init-functions
ADD docker-entrypoint.sh /docker-entrypoint.sh
RUN mkdir iredmail
RUN mkdir /var/config
ADD iredmail /iredmail
RUN chmod +x /docker-entrypoint.sh
CMD ["/docker-entrypoint.sh"]

EXPOSE 3306
EXPOSE 110
EXPOSE 995
EXPOSE 143
EXPOSE 993
EXPOSE 4190
EXPOSE 24
EXPOSE 12340
EXPOSE 24242
EXPOSE 7777
EXPOSE 7778
EXPOSE 3310
EXPOSE 25
EXPOSE 587
EXPOSE 465
