6. Make changes and redeploy a container using Visual Studio Code
Because you inevitably make changes to your app, you end up rebuilding and redeploying your container many times. Fortunately, the process is simple:
Change and deploy your app again
Change the Welcome message, in
./public/client.html, toWelcome 2 Express.In Visual Studio Code, open the Command Palette (F1) and run Docker Images: Build Image to rebuild the image). If you change only app code, the build should take only a few seconds.
To push the image to the registry, open the Command Palette (F1) again and run Docker Images: Push, choosing the image you just built. As before, because a change to your app code is small, only that layer needs to be pushed and the process typically completes in a few seconds.
In the Azure: App Service explorer, right-click the appropriate App Service and select Restart. Restarting an app service automatically pulls the latest container image from the registry.
After about 15-20 seconds, visit the App Service URL again to check the updates.