From d2e6e8269cff67c41f0d2affa63739f8a65d3406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E6=94=BF=E5=85=83?= <278227739@qq.com> Date: Fri, 26 Jan 2018 13:40:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86docker=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9E=84=E5=BB=BA=E7=9A=84=E4=B8=80=E4=BA=9B=E9=97=AE?= =?UTF-8?q?=E9=A2=98,=20=E6=9B=B4=E6=96=B0=E4=BA=86=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++--- docs/README.md | 4 ++-- package.json | 12 ++++++++++-- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21fa404..d1d9970 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 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": {