提交 854ac29d 编写于 作者: B binaryify 提交者: GitHub

Merge pull request #184 from twesix/master

修复了docker自动构建的一些问题, 更新了文档
......@@ -3,9 +3,10 @@ FROM mhart/alpine-node:9
WORKDIR /app
COPY . /app
RUN rm -rf node_modules \
&& rm package-lock.json \
&& npm config set registry "https://registry.npm.taobao.org/" \
RUN rm package-lock.json \
; rm -rf .idea \
; rm -rf node_modules \
; npm config set registry "https://registry.npm.taobao.org/" \
&& npm install
EXPOSE 3000
......
......@@ -177,11 +177,11 @@ request 相关的环境变量
6. NO_PROXY
```shell
docker pull twesix/netease-cloud-music:2.8.9
docker pull twesix/netease-cloud-music
docker run -d -p 3000:3000 --name netease-cloud-music twesix/netease-music-api
// 去掉或者设置相关的环境变量
docker run -d -p 3000:3000 --name netease-cloud-music -e http_proxy= -e https_proxy= -e no_proxy= -e HTTP_PROXY= -e HTTPS_PROXY= -e NO_PROXY= netease-cloud-music:2.8.9
docker run -d -p 3000:3000 --name netease-cloud-music -e http_proxy= -e https_proxy= -e no_proxy= -e HTTP_PROXY= -e HTTPS_PROXY= -e NO_PROXY= netease-cloud-music
```
## 接口文档
......
......@@ -8,9 +8,17 @@
"precommit": "lint-staged"
},
"lint-staged": {
"*.js": ["prettier --write", "git add"]
"*.js": [
"prettier --write",
"git add"
]
},
"keywords": ["网易云音乐", "网易云", "音乐", "网易云音乐nodejs"],
"keywords": [
"网易云音乐",
"网易云",
"音乐",
"网易云音乐nodejs"
],
"author": "",
"license": "MIT",
"dependencies": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册