From 480b1696eb78a8d15850bbc63394ab84e9696ee9 Mon Sep 17 00:00:00 2001 From: binaryify Date: Fri, 5 Jan 2018 14:46:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Dockerfile=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BB=A5Docker=E5=AE=B9=E5=99=A8=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=20#165?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.MD | 2 ++ docs/README.md | 7 +++++++ package.json | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.MD b/README.MD index e88dfa9..62a264f 100644 --- a/README.MD +++ b/README.MD @@ -17,6 +17,8 @@ ## 版本新特性 +### 2.8.2 | 2018.01.05 +增加Dockerfile,支持以Docker容器模式运行 ### 2.8.1 | 2018.01.04 添加了proxy功能 diff --git a/docs/README.md b/docs/README.md index 8d197af..675e68c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -29,6 +29,8 @@ fetch(url) ``` ## 版本新特性 +### 2.8.2 | 2018.01.05 +增加Dockerfile,支持以Docker容器模式运行 ### 2.8.1 | 2018.01.04 添加了proxy功能 @@ -133,6 +135,11 @@ windows 下使用 git-bash 或者 cmder 等终端执行以下命令: $ set PORT=4000 && node app.js ``` +## Docker容器运行 +```shell +docker pull pengxiao/netease-music-api +docker run -d -p 3000:3000 pengxiao/netease-music-api +``` ## 接口文档 ### 调用前须知 diff --git a/package.json b/package.json index 95b4f41..01f1574 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "2.8.1", + "version": "2.8.2", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", -- GitLab