mysql.user WHERE User='root' AND Host = '$(MYSQL_HOSTNAME)'; SET PASSWORD FOR 'root'@'localhost' = '$(MYSQL_ROOTHASH)'; SET PASSWORD FOR 'root'@'127.0.0.1' = '$(MYSQL_ROOTHASH)'; SET PASSWORD FOR 'root'@'::1' = '$(MYSQL_ROOTHASH)'; FLUSH PRIVILEGES; mysql_secure_installation $(MYSQL_ROOTHASH) = SELECT PASSWORD('SuperSecureIPromise')
DB FROM httpd:2.4 COPY ui /usr/local/apache2/htdocs/ui COPY static /usr/local/apache2/htdocs/static UI FROM php:7.0-apache RUN apt-get update && apt-get install -y php5-mysqlnd RUN docker-php-ext-install mysqli RUN a2enmod rewrite && a2enmod headers && service apache2 restart COPY app/ /var/www/html/ API