bill-newsnow / docker-serverless

Docker image containing NodeJS, Serverless Framework and Yarn.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svls/serverless

Docker image containing NodeJS, Serverless Framework and Yarn.

Usage

# build image, tag image, push image, update git tag with latest serverless release (one-time task)
$ make release

# Run serverless deploy in the image.
$ docker run --rm -it -v $(PWD):/opt/app -v ~/.aws:/root/.aws -v ~/.ssh:/root/.ssh $(IMAGE_NAME) bash
bash-4.3# sls deploy

Example

example/apigw is an example on how to use amaysim/serverless.

Docker image

The Docker image has the following:

  • Node 8.4 (Alpine): we leverage Babel to be compatible with AWS Lambda runtime
  • Serverless Framework
  • yarn
  • zip: handy to zip your own serverless artefact
  • AWS CLI: required by some Serverless plug-ins to work

About

Docker image containing NodeJS, Serverless Framework and Yarn.

License:MIT License


Languages

Language:Makefile 70.7%Language:JavaScript 29.3%