Docker-powered build/deployment environment for Serverless projects. This Docker image is intended for use with Bitbucket Pipelines and AWS CodeBuild.
See serverless-node-dynamodb-api for an example of this image in action.
This image is based on node:18-alpine (AWS Lambda uses Node v18.x) and has the AWS CLI, Serverless v3.33.0 and Yarn installed.
To deploy a Serverless service to AWS you will need to create an IAM user with the required permissions and set credentials. I'm setting credentials using Bitbucket Pipelines environment variables; however setting credentials in Dockerfile is also possible.
Use the 16.x branch/tag for an image running Node v16 and the 14.x branch/tag for an image running Node v14.