My Custom Application to Docker image

Hi,

I have an existing PHP application and MySQL DB running on CentOS 7.x. I would like to convert that as docker container, for good performance and to have serverless environment.

As am newbie in docker, I know basic docker function to create a docker container from existing image (hub.docker.com), but not sure about existing application.

Can I get some assistance to have this achieved, or any article to go with to have my existing application as docker container?

Thanks in advance.

Gopal.