How to automate the magento2 installation process too via docker This is what I have accomplished up to now. Written a docker file where I have done the following and for now I have not used the docker compose.


Used alpine as base Os
setup nginx
setup php-fpm
Installed magento2 file 


So my docker build is ready and the container is ready and can see the setup page when opening it on the browser.



My problem
How do I automate  this Magento2 installation process from dockerfile. Like setting up database and the other installation process.
Instead of creating a dockerfile yourself you could also pull a docker image, e.g. alexcheng/magento2.