Sample image with ASP.NET Core Web Server running compiled Website compiled from PHP to .NET Core.
3.3K
The website project is written in PHP and compiled to .NET Core.
Project App initializes a web server running on localhost:5004 and passing requests to compiled PHP scripts.
The PHP sources are compiled to .NET Core by Peachpie compiler which is seamlessly downloaded by dotnet itself.
The sample instantiates Kestrel - the opensource web server - and AspNetCore pipeline. The pipeline handles requests to PHP files using Peachpie RequestDelegate by calling corresponding compiled scripts in website.dll.
Note the original PHP sources (*.php files) are not needed to run the compiled application.
The docker image iolevel/peachpie-aspnetcore compiles and exposes the website directory.
dotnet run -p appContent type
Image
Digest
Size
501.6 MB
Last updated
almost 7 years ago
docker pull iolevel/peachpie-aspnetcore