Docker image containing NodeJS, Serverless Framework and Yarn.
If you want to build and use your own local image
# build image locally
$ make build
# go inside the container
$ make shellexample/apigw is an example on how to use amaysim/serverless.
- Change
SERVERLESSofDockerfile - Change
SERVERLESS_VERSIONofMakefile - Change version of docker-serverless in
example/apigw/docker-compose - 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 Detailstab, you should now see the new tag kicking off
- 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 Detailstab, you should now see build the tag kicking off
The Docker image has the following:
- Node 8.4 (Alpine): we leverage Babel to be compatible with AWS Lambda runtime
- Serverless Framework v1.27.1
- yarn
- zip: handy to zip your own serverless artefact
- AWS CLI: required by some Serverless plug-ins to work
