A mysql/5.7 variant of lindycoder's Dockerfile for mariadb
docker build --build-arg sqlfile=setup.sql --tag my-prepopulated-image .
docker rmi -f $(docker images -q --filter label=stage=intermediate)
docker run -it --rm -p 3306:3306 --name my-container my-prepopulated-image
mysql -h127.0.0.1 -P 3306 -u root -p