fix for 'wait for mysql to start' block, change back to CMD in dockerfile