From 4c01e3e30e9906ec4a47d6ee1fc94a8a15095f22 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Fri, 5 Jan 2018 14:19:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Dockerfile=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BB=A5Docker=E5=AE=B9=E5=99=A8=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 +++++++++ README.MD | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..55d4a93 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM mhart/alpine-node:8 + +WORKDIR /app +COPY . /app + +RUN npm install + +EXPOSE 3000 +CMD ["node", "app.js"] diff --git a/README.MD b/README.MD index 5834fa2..e88dfa9 100644 --- a/README.MD +++ b/README.MD @@ -180,6 +180,12 @@ windows 下使用 git-bash 或者 cmder 等终端执行以下命令: $ set PORT=4000 && node app.js ``` +## Docker容器运行 +```shell +docker pull pengxiao/netease-music-api +docker run -d -p 3000:3000 pengxiao/netease-music-api +``` + ## 使用文档 [文档地址](https://binaryify.github.io/NeteaseCloudMusicApi)