Staged builder for Docker on Alpine x64, with images for 1) .Net Core Runtime, 2) Runtime with SDK, 3) ASP.NET Core (w/ Runtime and SDK) and 4) All with Nginx baked in for reverse proxy into your ASP.NET Core Web App.
This builder will generate a Docker image that can run a full build of a standalone ASP .NET Core 2.2 Web App. Runtime dependencies for using the full .NET Core SDK and dotnet cli are included in the .NET Core SDK Dockerfile.
The ASP.NET Core image builds with the full SDK and .NET Core runtime. It's not intended for standalone applications, and is considerably more bulky. Instead, the ASP.NET Core image can be used to build a standalone Web app with all required dependencies, including Nginx as a reverse proxy.
The final stage of the build creates a Docker image named indiewebcsonult/aspdotnetcore:{version}. This image allows you to build your solution down to a minimal x64 Alpine .Net Core Console or Web application without ever opening an install executable for the .Net Core platform (Runtime, SDK, ASP.NET, etc). Everything you need to build a self contained app is included.
For more information about building a self contained app, visit this MSDN blog article.
To build the latest version of these images:
sh ./build.sh
or a custom version defined by a docker compose file ...
sudo docker-compose -f docker-compose-r2.2.3_sdk2.2.202.yml build
To build your ASP .NET Core application:
sudo docker run --rm -ti -v ./solution-folder:/app indiewebconsult/aspdotnetcore:2.2.3-alpine-nginx dotnet build -o /app -r linux-musl-x64 -c Release
Content type
Image
Digest
Size
605.8 MB
Last updated
over 7 years ago
docker pull indiewebconsult/dotnetcore-sdk