Hello @Herbert Kimani
I'm afraid that you can not change from code to container , but you can have two instances of your code, one using code and one using container within the same service app. Here is similar issue.
Multicontainer apps are supported in Azure WebApp, see docs
If you think your question has been answered, click "Mark as Accept Answer" if just helped click "Vote as helpful". This can be beneficial to other community members reading this forum thread.