Closed AntonyOnScript closed 2 years ago
@AntonyOnScript you should be able to run serverless-offline
in a docker container. the --useDocker
option is meant for running your lambda handlers in a docker container, not serverless
and serverless-offline
itself. just removing the option might already be enough for you to get it to work.
closing this for good house keeping. let us know if there's any other issues.
thanks!
i always get this error when trying to run it in a docker container, i can't figure out where is the problem, can someone help me?
plugins:
package: exclude:
provider: name: aws runtime: nodejs12.x
custom: serverless-offline: port: 3000 host: 0.0.0.0 useDocker: true
functions: hello: handler: app.handler events: