Docker image containing NodeJS, Serverless Framework and Yarn.
# running Serverless version 1.72.0
$ docker run --rm amaysim/serverless:1.72.0 serverless --help
If you want to build and use your own local image
# build image locally with latest Serverless version
$ make build
# build image locally with specific Serverless version
$ make build SERVERLESS_VERSION=1.72.0
# go inside the container
$ make shell
example/apigw
is an example on how to use amaysim/serverless
.
Periodically, once a week, a new amaysim/serverless Docker image containing the lastest version of Serverless is being built with GitHub Actions. This means that there is no need for someone to manually update and tag the image whenever there is a new Serverless version.
The project follows the typical GitHub pull request model. Before starting any work, please either comment on an existing issue, or file a new one.
- Fork this repository
- Clone the forked repository
- Create a new branch with a meaningful name (optional)
- Make your changes
- Test locally
$ make ciTest
- Test also the apigw example
- Commit and push your changes
- Create a pull request from a fork
The Docker image has the following:
- Node LTS (12.14.0) Alpine: we leverage Babel to be compatible with AWS Lambda runtime
- Serverless Framework
- yarn
- zip: handy to zip your own serverless artifact
- AWS CLI: required by some Serverless plug-ins to work