This example shows how to use the new copy-extra-paths feature in the faas-cli.
First, build the function
faas-cli buildYou can then run the function locally using
docker run --rm -p 8080:8080 theaxer/echo-common:latestWhich you cant test using
$ curl http://localhost:8080 -d "the coolest"
openfaas