amaysim/serverless
Docker image containing NodeJS, Serverless Framework and Yarn.
Usage
Build Locally
If you want to build and use your own local image
# build image locally
$ make build
# go inside the container
$ make shell
Update Docker image
New version of Serverless Framework
- Change
SERVERLESS
ofDockerfile
- Change
SERVERLESS_VERSION
ofMakefile
- Build and test locally (test also the apigw example)
- Commit and push the changes
- Tag the commit with the command
$ make tag
- Go to hub.docker.com
- In
Build Details
tab, you should now see the new tag kicking off
Fix for the current version
- Do the fixes you want to do
- Build and test locally (test also the apigw example)
- Commit and push the changes
- Run
$ make tag
- Go to hub.docker.com
- In
Build Details
tab, you should now see build the tag kicking off
Docker image
The Docker image has the following:
- Node 8.10 compatible with AWS Lambda runtime
- Serverless Framework v1.27.3
- yarn
- AWS CLI: required by some Serverless plug-ins to work