fix: resolve Lambda invocation failure from API Gateway

- Align Dockerfile with AWS official documentation for provided runtime
- Remove DefinitionBody from SAM template to avoid conflict with Events property
- This enables SAM to automatically generate AWS::Lambda::Permission resource
- Fixes 500 error when Forgejo webhook triggers API Gateway endpoint"
This commit is contained in:
Daisuke Nakahara 2026-01-12 21:25:06 +09:00
parent a59a8e6461
commit 8cd30da394
2 changed files with 1 additions and 25 deletions

View file

@ -13,6 +13,5 @@ FROM public.ecr.aws/lambda/provided:al2023
RUN dnf update -y && \
dnf install -y git zip && \
dnf clean all
COPY --from=build /app/main ${LAMBDA_TASK_ROOT}
WORKDIR ${LAMBDA_TASK_ROOT}
COPY --from=build /app/main ./main
ENTRYPOINT [ "./main" ]