Skip to content

Commit 81b6ef3

Browse files
author
Derek Bourgeois
committed
Update Dockerfile
1 parent 74a5ef6 commit 81b6ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ RUN echo mysql-server mysql-server/root_password password $DB_PASS | debconf-set
8686
apt-get install -y mysql-server && \
8787
echo "default_password_lifetime = 0" >> /etc/mysql/my.cnf && \
8888
sed -i '/^bind-address/s/bind-address.*=.*/bind-address = 0.0.0.0/' /etc/mysql/my.cnf
89-
RUN /usr/sbin/mysqld && \
89+
RUN /usr/sbin/mysqld & \
9090
sleep 10s && \
9191
echo "GRANT ALL ON *.* TO root@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; CREATE USER 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret'; GRANT ALL ON *.* TO 'homestead'@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; GRANT ALL ON *.* TO 'homestead'@'%' IDENTIFIED BY 'secret' WITH GRANT OPTION; FLUSH PRIVILEGES; CREATE DATABASE homestead;" | mysql
9292
VOLUME ["/var/lib/mysql"]

0 commit comments

Comments
 (0)