Back to Docker Lambda

.NET Core 2.1 docker-lambda example

examples/dotnetcore2.1/README.md

0.15.3371 B
Original Source

.NET Core 2.1 docker-lambda example

sh
# Will place the compiled code in `./pub`
docker run --rm -v "$PWD":/var/task lambci/lambda:build-dotnetcore2.1 dotnet publish -c Release -o pub

# Then you can run using that as the task directory
docker run --rm -v "$PWD"/pub:/var/task lambci/lambda:dotnetcore2.1 test::test.Function::FunctionHandler '{"some": "event"}'