This repository include code explained in my blog https://frank-afriat.medium.com/lets-compile-your-aws-lambda-in-java-eafc24aae269
build it with mvn package
build it with docker build -t hello-lambda/latest .
Explanations from my blog: https://frank-afriat.medium.com/solving-the-java-aws-lambda-logging-problem-305b06df457f
Build:
Generate the Dockerfile in target folder:
mvn validate
Then build it with
docker build -f target/Dockerfile -t hello-lambda:latest .
Then extract the function.zip from the image:
docker cp $(docker create hello-lambda:latest):/function.zip .