Add some unit test and dockerfile

This commit is contained in:
Daisuke Nakahara 2025-05-04 21:02:44 +09:00
parent 1bee169123
commit 0819ae1a71
7 changed files with 474 additions and 3 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM docker.io/golang:1.24.2-bookworm as build
WORKDIR /app
# Copy dependencies list
COPY ./app/go.mod ./
COPY ./app/go.sum ./
# Build with optional lambda.norpc tag
COPY ./app/main.go ./
RUN go build -tags lambda.norpc -o main main.go
# Copy artifacts to a clean image
FROM public.ecr.aws/lambda/provided:al2023
COPY --from=build /app/main ${LAMBDA_TASK_ROOT}
ENTRYPOINT [ "main" ]