/docker-serverless

Docker image containing NodeJS, Serverless Framework and Yarn.

Primary LanguageMakefileMIT LicenseMIT

amaysim/serverless

Serverless Application Framework AWS Lambda API Gateway

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

  1. Change SERVERLESS of Dockerfile
  2. Change SERVERLESS_VERSION of Makefile
  3. Build and test locally (test also the apigw example)
  4. Commit and push the changes
  5. Tag the commit with the command $ make tag
  6. Go to hub.docker.com
  7. In Build Details tab, you should now see the new tag kicking off

Fix for the current version

  1. Do the fixes you want to do
  2. Build and test locally (test also the apigw example)
  3. Commit and push the changes
  4. Run $ make tag
  5. Go to hub.docker.com
  6. In Build Details tab, you should now see build the tag kicking off

Docker image

The Docker image has the following: