diff --git a/Dockerfile b/Dockerfile index 21fa404..d826df3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docs/README.md b/docs/README.md index 84b2a13..12862fc 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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 ``` ## 接口文档 diff --git a/package.json b/package.json index 7e118ee..6706bd9 100644 --- a/package.json +++ b/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": {