Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
为方便用户使用,添加 Dockerfile 用于打包镜像;
另外:
config.js
内各参数的获取方式改为从环境变量获取,便于 Docker 部署与安全部署;并在 git 内加入该文件;原先的运行方式仍然可用打包:
docker build -t wx_jsapi_sign:latest .
以 docker 命令行方式运行(示例):
以 Docker Compose 配置文件运行(示例):
我这边已打包至 Docker Hub (dingjunyao/wx_jsapi_sign) 和 GitHub Packages(ghcr.io/dingjunyao/wx_jsapi_sign)。