Skip to content

lbussell/dotnet-docker-wasi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

.NET + WASI + Docker

Prerequisites

For building and running the container

  1. Docker Desktop - See the Wasm workloads documentation

For building and running locally

TBD - or see the original .NET wasiconsole template README.

Build

docker buildx build --platform wasi/wasm --load -t wasiconsole https://github.com/lbussell/dotnet-docker-wasi.git#:wasiconsole

Run using Docker Desktop

docker run --rm --runtime=io.containerd.wasmedge.v1 --platform=wasi/wasm wasiconsole

Changes from wasiconsole template

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
    <OutputType>Exe</OutputType>
    <PublishTrimmed>true</PublishTrimmed>

+   <WasmSingleFileBundle>true</WasmSingleFileBundle>
+   <InvariantGlobalization>true</InvariantGlobalization>
+   <Nullable>enable</Nullable>
  </PropertyGroup>
</Project>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published