I would like to run a PHP App in Azure Webapps. For this I would like to use my own Container, because I have some problems with the current default.
Is the Code, or the Dockerfile somewhere public, so one can use it as a base?
EDIT: I would also like to file a potential bug, but I also cannot find an issue tracker.
As Jason correctly pointed out, adding some more info on this topic for additional clarity:
In Azure App service, you can have different flavor/version of WebApp, as follows:
1.Code + Windows – You select the Application stack and deploy your code.
2.Code + Linux (WebApp Linux) - App Service on Linux provides pre-defined application stacks on Linux with support for languages such as .NET, PHP, Node.js and others. These are blessed images, predefined by platform. Here you just deploy your code.
Docker Container + Linux (WebApp for Container) – custom image (code already part of the image, and not deployed separately) - container image become containers at runtime.
Docker Container + Windows (WebApp for Windows Container) – custom image – container image become containers at runtime.
Yes, you can also use a custom Docker image to run your webapp on an application stack that is not already defined in Azure. Azure App Service provides pre-defined application stacks on Windows like ASP.NET or Node.js, running on IIS.
az webapp config container set You can run
az webapp list-runtimes --linux
to view the latest languages and supported versions. If the runtime your application requires is not supported in the built-in images, you can deploy it with a custom container.Kind checkout these documentation for more details.
https://learn.microsoft.com/azure/app-service/quickstart-custom-container?pivots=container-windows https://learn.microsoft.com/azure/app-service/quickstart-custom-container?pivots=container-linux
All App Service base images can be found here:
https://github.com/Azure-App-Service/php (in your case)
-Similarly you can find for other languages-
https://github.com/Azure-App-Service/python
https://github.com/Azure-App-Service/ruby
https://github.com/Azure-App-Service
If there is any change on the WebApp blessed images you could typically see that change in this repository: https://github.com/Azure/app-service-quickstart-docker-images
And yes, it is a good place to track your feedback/suggestions for the repo: https://github.com/Azure/app-service-quickstart-docker-images/issues