Skip to content

CraigMcAulay1101/docker-serverless-offline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-serverless-offline

Run a lambda function locally using serverless and the serverless-offline plugin.

Usage

First initialize npm in your directory, to generate a new package.json. e.g.

npm init -y

Run the following command to build & run the container

docker-compose up --build

The container will be running at http://0.0.0.0:3000

Edit serverless.yml to add new API methods, and define the handler to be called when the URI is hit.

The basic example provided calls handler.py when any GET request is made to http://0.0.0.0:3000/test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published