Open SilasCrosby opened 3 hours ago
change build image to FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim-arm64v8 AS build-image
Thanks for reporting this issue, may I ask why did you change the image before starting the build? Does building succeed if you use the original image?
Description:
Getting non-zero code 139 when updating dotnet 6 docker file to dotnet 8, for container lambda functions, also occurs on sam init with hello world container lambda function creation.
Steps to reproduce:
sam init hello world, select container image type.
add "function-architecture": "arm64",
change build image to FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim-arm64v8 AS build-image
delete Samconfig.toml
Change Template to include Architectures:
Observed result:
Error: The command '/bin/sh -c dotnet tool install -g Amazon.Lambda.Tools' returned a non-zero code: 139
Expected result:
sam build successfully.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
WSL2 Ubuntu 20.04 on Windows 11 24H2
sam --version