Sign inSign up

denoland/deno-lambda

By denoland

Updated about 2 years ago

Run deno containers on AWS Lambda

Image
Languages & frameworks
Integration & delivery
API management
0

6.5K

denoland/deno-lambda repository overview

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.

Tag summary

Content type

Image

Digest

sha256:25a982c87

Size

153.2 MB

Last updated

about 2 years ago

docker pull denoland/deno-lambda