Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一行docker命令快捷启动qq音乐服务 #81

Closed
1015770492 opened this issue Jan 9, 2021 · 0 comments
Closed

一行docker命令快捷启动qq音乐服务 #81

1015770492 opened this issue Jan 9, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@1015770492
Copy link

1015770492 commented Jan 9, 2021

将下面的中文部分,也就是输入自己的会员账号即可,然后通过setCookie操作就行了

docker run -it -d --network=host --name=QQMusicApi -e QQ=指定qq号 registry.cn-hangzhou.aliyuncs.com/yumbo/qq_music_api:1.0

端口还是默认的3300

上面的镜像是我自己构造并上传到了阿里云的镜像仓库,所以直接输入命令执行就可以运行起来了

DockerFile源码是

FROM node
WORKDIR /root/QQMusicApi

# 通过git clone https://github.com/jsososo/QQMusicApi.git得到源码包
# cd QQMusicApi && npm install && cd .. 回到上一级相对路径,也就是安装完依赖后的源码包需要复制到node镜像中

# 下面的 ./QQMusicApi是已经安装好依赖的源码包
COPY ./QQMusicApi /root/QQMusicApi

EXPOSE 3300
# Define default command.  
ENTRYPOINT cd /root/QQMusicApi && npm start /root/QQMusicApi
# 构建完后会得到镜像的id
# 然后通过 docker run -it -d --network=host --name=QQMusicApi -e QQ=指定qq号 镜像id 启动镜像即可
@jsososo jsososo added the documentation Improvements or additions to documentation label Jan 11, 2021
@jsososo jsososo pinned this issue Jan 19, 2021
@jsososo jsososo unpinned this issue Feb 4, 2021
@jsososo jsososo pinned this issue Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants