Unified installer.sh

This commit is contained in:
Myve 2024-08-10 03:13:59 +00:00
commit b88b91ba6f
4 changed files with 44 additions and 515 deletions

View file

@ -15,10 +15,32 @@ ENV MYVEMAIL_OPENDMARC_CONF=/etc/opendmarc.conf
# Copy required files folders
ADD run/bin /usr/local/bin/
ADD run/docker-entrypoint /docker-entrypoint/
COPY run/installer-ubuntu.sh /tmp/installer.sh
ADD run/installer.sh /tmp/
# Update Ubuntu Software repository and install requisites
RUN /tmp/installer.sh \
RUN apt remove -y nano* exim*; \
&& apt update \
&& apt upgrade -y \
&& apt dist-upgrade -y \
&& bash -c "echo \"postfix postfix/main_mailer_type string 'Internet Site'\" | debconf-set-selections" \
&& apt install -y \
ca-certificates \
git wget bind9-host acl dbconfig-no-thanks \
rsyslog \
nginx \
mariadb-server mariadb-client postfix-mysql dovecot-mysql \
php php-fpm php-imap php-mbstring php-mysql php-json php-curl php-zip php-xml php-bz2 php-intl php-gmp php-net-ldap3 php-imagick php-common php-gd php-sqlite3 php-cli \
postfix postfix-pcre \
dovecot-core dovecot-imapd dovecot-lmtpd \
postfix-policyd-spf-python opendkim opendkim-tools \
opendmarc \
&& apt autoremove -y \
&& apt clean \
&& rm -r -f /var/lib/apt/lists \
# Create vmail user
&& adduser vmail --system --group --uid 600 --disabled-login --home /var/vmail/ --quiet \
# Installer
&& /tmp/installer.sh \
&& rm /tmp/installer.sh
# Expose ports