From 323da41d85ea29680ff4485f4c9f356ee57a792e Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Thu, 13 Jun 2024 22:46:40 +0200 Subject: [PATCH] feat: improve build step --- Dockerfile.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.php b/Dockerfile.php index d7d4c13..2af1019 100644 --- a/Dockerfile.php +++ b/Dockerfile.php @@ -63,7 +63,9 @@ mkdir -p /var/tmp /run/mysqld mariadb-install-db --datadir=/var/lib/mariadb --user=root /usr/bin/mariadbd --basedir=/usr --datadir=/var/lib/mariadb --plugin-dir=/usr/lib/mariadb/plugin --user=root & - sleep 2 + + until mariadb-admin ping; do sleep 1; done + mariadb-admin --user=root password 'root' chown -R www-data:www-data /var/www/html /var/lib/mariadb/ /var/tmp /run/mysqld/