Deploying dotnet c# api with mysql and ef core migrations

Hi everybody, im trying to deploy my app through a dockerfile but i dont understand how to run my migrations and properly configure the connection to mysql.

also im using dotnet 5