I'm using .net 8 AOT to publish my AWS Lambda, and whilst it publishes OK locally, when I put it onto the build server, I get 'Killed' with signal 137. I understand from other posts that this is a memory issue.
I've already got an 8GB docker image. Is there any way to increase this?
definitions:
services:
docker:
# Define the Docker service which requires 7128 MB memory
docker-7128m:
type: docker
memory: 7128
<snip>
- step:
script:
# Build Lambda Login image
- dotnet publish XXXX
--framework "net8.0"
--self-contained true
/p:GenerateRuntimeConfigurationFile=true
--runtime linux-x64
/p:StripSymbols=true
services:
- docker-7128m
.NET AOT builds are renowned for requiring huge amount of RAM, so there's not much I can do about it, apart from turn if off, which is obviously not going to happen.