mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 00:06:19 +00:00
Unified installer.sh
This commit is contained in:
parent
a8bcc85fa5
commit
b88b91ba6f
4 changed files with 44 additions and 515 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue