denoland/deno-lambda
Run deno containers on AWS Lambda
4.0K
These images contain all the required components to run your deno functions as container images on AWS Lambda.
For deployment instructions please consult the "configuration-images" section of the AWS Lambda documentation.
Example Dockerfile
below:
FROM denoland/deno-lambda:1.40.4
COPY hello.ts .
RUN deno cache hello.ts
CMD ["hello.handler"]
To build your image:
docker build -t <image name> .
To run your image locally:
docker run -p 9000:8080 <image name>
In a separate terminal, you can then locally invoke the function using cURL:
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"payload":"hello world!"}'
To learn more on deploying the function to ECR, check out the AWS documentation on Creating a repository and Pushing an image.
See also https://hub.docker.com/r/amazon/aws-lambda-provided which we extend.
docker pull denoland/deno-lambda