This is an absolute minimal ASP.NET application that responds to GET requests by using the command curl http://localhost:5000/weatherforecast
when the application is running locally.
This assumes you perform the commands within the /src
directory
docker run --rm --privileged --volume "${PWD}":/work --workdir=/work cgr.dev/chainguard/melange keygen weather-api.rsa
docker run --rm --privileged --volume "${PWD}":/work --workdir=/work cgr.dev/chainguard/melange build melange.yaml --arch x86_64 --signing-key weather-api.rsa
docker run --privileged --volume "$PWD":/work --workdir=/work cgr.dev/chainguard/apko build apko.yaml weather-api weather-api.tar --arch x86_64
docker load < weather-api.tar
docker run weather-api:latest-amd64