We have a simple multi-stage build Dockerfile
which is in the balena-template format. This is to allow our cloud builders to do variable substitution on things like %%BALENA_ARCH%%
which make the image suitable for amd64
and armv7hf
targets.
The helper script install-dotnet.sh
is responsible for acquiring the correct verison of the framework binaries for your platform, which is invoked in both the sdk
and final stages of the build; first to acquire the SDK binaries and then to acquire ONLY the runtime binaries.
- Create a balena application using the cloud dashboard, e.g.
myAspNetCoreApp
- You can target any device type which is compatible with the following architectures:
armv7hf
amd64
- You can target any device type which is compatible with the following architectures:
- Clone this repo to your machine:
git clone https://github.com/balena-io-playground/balena-aspnet-core.git
- In the repo directory, use the
balena-cli
application to push it to your application:balena push myAspNetCoreApp
This application will host a simple site on port 80
which you should be able to view once it is deployed.