mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
增加Dockerfile,支持以Docker容器模式运行。
This commit is contained in:
parent
40fe20dba4
commit
4c01e3e30e
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM mhart/alpine-node:8
|
||||
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
|
||||
RUN npm install
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["node", "app.js"]
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user