Skip to content

Commit 913bd70

Browse files
committed
docs: add self-hosting instruction
1 parent 30b05f0 commit 913bd70

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,16 @@ LeetCode and LeetCode CN are both supported.
2222

2323
It also has a [NPM package](https://www.npmjs.com/package/leetcode-card) and a [highly extensible system](./src/core/index.ts), so you can easily customize it to your needs.
2424

25-
CLI tool will be created if I have time.
2625
Want to contribute? Feel free to open a pull request!
2726

27+
## Self-hosting
28+
29+
You can also self-host this service using the [`jacoblincool/leetcode-stats-card`](https://hub.docker.com/r/jacoblincool/leetcode-stats-card) Docker image.
30+
31+
To build the image by yourself, use `pnpm build:image` script.
32+
33+
See [docker-compose.yml](./docker-compose.yml) for an example.
34+
2835
## Usage
2936

3037
Simply copy the code below, paste it into your `README.md`, and change the path to your leetcode username (case-insensitive).

0 commit comments

Comments
 (0)