Sign inSign up

hayd/deno-lambda

By hayd

Updated over 3 years ago

Run deno containers on AWS Lambda

Image
0

7.4K

hayd/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 hayd/deno-lambda:1.10.3

COPY hello.ts .
RUN deno cache hello.ts


CMD ["hello.handler"]

Note: This repos :version (1.10.3 above) coincides with the deno version.

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:b307f6acb

Size

142.3 MB

Last updated

over 3 years ago

docker pull hayd/deno-lambda