修复了docker自动构建的一些问题, 更新了文档

This commit is contained in:
孟政元 2018-01-26 13:40:50 +08:00
parent d9e8ffadf2
commit d2e6e8269c
3 changed files with 15 additions and 7 deletions

View File

@ -3,9 +3,9 @@ FROM mhart/alpine-node:9
WORKDIR /app WORKDIR /app
COPY . /app COPY . /app
RUN rm -rf node_modules \ RUN rm package-lock.json \
&& rm package-lock.json \ ; rm -rf node_modules \
&& npm config set registry "https://registry.npm.taobao.org/" \ ; npm config set registry "https://registry.npm.taobao.org/" \
&& npm install && npm install
EXPOSE 3000 EXPOSE 3000

View File

@ -177,11 +177,11 @@ request 相关的环境变量
6. NO_PROXY 6. NO_PROXY
```shell ```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 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
``` ```
## 接口文档 ## 接口文档

View File

@ -8,9 +8,17 @@
"precommit": "lint-staged" "precommit": "lint-staged"
}, },
"lint-staged": { "lint-staged": {
"*.js": ["prettier --write", "git add"] "*.js": [
"prettier --write",
"git add"
]
}, },
"keywords": ["网易云音乐", "网易云", "音乐", "网易云音乐nodejs"], "keywords": [
"网易云音乐",
"网易云",
"音乐",
"网易云音乐nodejs"
],
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {