| apt-get -y install --no-install-recommends \ | apt-get -y install --no-install-recommends \ | ||||
| rsyslog \ | rsyslog \ | ||||
| postfix postfix-pcre postfix-ldap \ | postfix postfix-pcre postfix-ldap \ | ||||
| sudo cron getmail4 \ | |||||
| cron getmail4 \ | |||||
| mutt swaks \ | mutt swaks \ | ||||
| dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-ldap \ | dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-ldap \ | ||||
| libsasl2-2 sasl2-bin libsasl2-modules-ldap | libsasl2-2 sasl2-bin libsasl2-modules-ldap |
| FROM debian:buster | FROM debian:buster | ||||
| #RUN echo deb http://deb.debian.org/debian jessie-backports main >> /etc/apt/sources.list | |||||
| #RUN apt-get update && apt-get install -y haproxy cron \ | |||||
| # && apt-get install -y certbot -t jessie-backports | |||||
| RUN apt-get update && apt-get install -y haproxy cron certbot | RUN apt-get update && apt-get install -y haproxy cron certbot | ||||
| RUN mkdir -p /run/haproxy | RUN mkdir -p /run/haproxy |
| apt-get -y install mariadb-server procps | apt-get -y install mariadb-server procps | ||||
| RUN find /etc/mysql/ -name *.cnf -exec sed -i 's/^\(bind-address\s.*\)/# \1/' {} \; | RUN find /etc/mysql/ -name *.cnf -exec sed -i 's/^\(bind-address\s.*\)/# \1/' {} \; | ||||
| # Install Mysql DB | |||||
| RUN mysql_install_db --user=mysql --ldata=/var/lib/mysql | |||||
| #RUN \ | |||||
| # find /etc/mysql/ -name *.cnf -exec sed -i 's/^\(bind-address\s.*\)/# \1/' {} \; && \ | |||||
| # echo "mysqld_safe &" > /tmp/config && \ | |||||
| # echo "mysqladmin --silent --wait=30 ping || exit 1" >> /tmp/config && \ | |||||
| # echo "mysql -e 'GRANT ALL PRIVILEGES ON *.* TO \"root\"@\"%\" WITH GRANT OPTION;'" >> /tmp/config && \ | |||||
| # bash /tmp/config && \ | |||||
| # mysql -e "SELECT Host, User, Password FROM mysql.user;" > /tmp/a.out | |||||
| #rm -f /tmp/config | |||||
| COPY tuning.cnf /etc/mysql/conf.d/tuning.cnf | COPY tuning.cnf /etc/mysql/conf.d/tuning.cnf | ||||
| cat /tmp/php_nc.ini >> /etc/php/7.4/cli/php.ini | cat /tmp/php_nc.ini >> /etc/php/7.4/cli/php.ini | ||||
| # https://docs.nextcloud.com/server/13/admin_manual/installation/source_installation.html#php-fpm-tips-label | # https://docs.nextcloud.com/server/13/admin_manual/installation/source_installation.html#php-fpm-tips-label | ||||
| RUN sed -i 's/^;env/env/g' /etc/php/7.4/fpm/pool.d/www.conf | RUN sed -i 's/^;env/env/g' /etc/php/7.4/fpm/pool.d/www.conf | ||||
| # https://github.com/nextcloud/vm/issues/2039#issuecomment-876204446 | |||||
| RUN echo "" >> /etc/php/7.4/mods-available/apcu.ini | |||||
| RUN echo "apc.enable_cli=1" >> /etc/php/7.4/mods-available/apcu.ini | |||||
| # Create the data-directory where NEXTCLOUD can store its stuff | # Create the data-directory where NEXTCLOUD can store its stuff | ||||
| RUN mkdir -p "${NEXTCLOUD_DATA_PATH}" && \ | RUN mkdir -p "${NEXTCLOUD_DATA_PATH}" && \ |