This repository contains the source for building a container image that can be used as a base for framework-dependent ASP.NET Core applications.
To containerize a .NET application, you can use the .NET (10+) SDK's PublishContainer target with the ContainerBaseImage property set to the desired base image.
For example:
dotnet publish /p:ContainerBaseImage=registry.access.redhat.com/ubi9/dotnet-100-aspnet /t:PublishContainer -v detailed
-
Dockerfile.rhel9
UBI 9 / RHEL 9 based Dockerfile. No RHEL subscription is required, but without one only UBI RPMs can be added to the container.
-
test/This folder contains binary archives of S2I dotnet sample applications.
-
aspnet-hello-world/ASP .Net hello world example app used for testing purposes. Sources are precompiled in
app.tar.gz. See build-project.sh for as to how to produce the binary.
-
The following variables are set so they can be used from scripts. They must not to be overridden.
ASPNET_VERSION
These variable contains the version of the ASP.NET Core runtime.