GitHub Repo: https://github.com/wechaty/docker-wechaty-getting-started
Features
- Wechaty is fully dockerized. So it will be very easy to be used as a MicroService.
- Clone the above repository, then you will be able to use Docker to run Wechaty with ZERO configuration.
Requirements
- Docker
- Global Internet Connection
Usage
It’s very easy to use Wechaty with Docker.
1. Run TypeScript Example
bash -x bin/docker-run-typescript.sh
2. Run ES6 Javascript Example
bash -x bin/docker-run-javascript-esm.sh
Run Vanilla Javascript Example
We will not support CommonJS after we upgrade to Wechaty v1.x
Docker
1. Install Docker
Quick & easy install Docker via:
curl -sSL https://get.docker.com | sh
Or
wget -qO- https://get.docker.com/ | sh
Get to know more about Docker at: https://www.docker.com/
Network Issues
If you have been experiencing issues with Docker in China, you can try to use a VPS out of China and see if it helps. Most of the time, it will be a good idea to use a VPS out of China.