Run commands in docker containers as serverless hooks.
Requires docker
to be installed and running.
npm install --save-dev serverless-docker-hooks
plugins:
- serverless-docker-hooks
custom:
dockerHooks:
before:deploy:deploy:
image: ubuntu
command: # Optional
- 'bash'
- '-c'
- 'ls local'
volumes: # Optional
- './:/local'