Optimize dockerfile for mysql too.