mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-03 13:22:10 +08:00
修复了docker自动构建的一些问题, 更新了文档
This commit is contained in:
parent
d9e8ffadf2
commit
d2e6e8269c
@ -3,9 +3,9 @@ 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 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
|
||||
```
|
||||
|
||||
## 接口文档
|
||||
|
12
package.json
12
package.json
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user