支持启动联机服务器,添加链接到README.md
This commit is contained in:
parent
e391670ccb
commit
45b57ac9b0
|
@ -2,12 +2,13 @@ FROM node:18
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./docker/index.js ./
|
||||
COPY ./docker/* ./
|
||||
|
||||
RUN npm install body-parser express minimist
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8080
|
||||
EXPOSE 8089
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
CMD [ "sh","./start.sh" ]
|
|
@ -14,7 +14,6 @@ https://github.com/nonameShijian/noname-server
|
|||
|
||||
[《无名杀》项目 Pull Request 提交规范](https://github.com/libccy/noname/wiki/%E3%80%8A%E6%97%A0%E5%90%8D%E6%9D%80%E3%80%8B%E9%A1%B9%E7%9B%AE-Pull-Request-%E6%8F%90%E4%BA%A4%E8%A7%84%E8%8C%83)
|
||||
|
||||
|
||||
在线试玩:
|
||||
|
||||
https://spmario233.github.io/noname/index.html (图片素材加载速度较慢,不推荐)
|
||||
|
@ -23,6 +22,8 @@ https://spmario233.github.io/noname/index.html (图片素材加载速度较慢
|
|||
|
||||
GitHub: https://github.com/libccy/noname/releases/tag/chromium77-client
|
||||
|
||||
docker: [docker.md](./docker/docker.md)
|
||||
|
||||
网页端推荐使用 Chrome 系内核浏览器游玩,不推荐使用低版本 Firefox 浏览器
|
||||
|
||||
请尽量保证游玩的 Chrome 系浏览器或手机 Webview 的`内核版本大于等于77`
|
||||
|
|
|
@ -18,7 +18,9 @@ docker build -t noname .
|
|||
3. 启动
|
||||
|
||||
```shell
|
||||
docker run -dit --name noname --restart=unless-stopped -p 8734:8089 noname
|
||||
docker run -dit --name noname --restart=unless-stopped -p 8734:8089 -p 8324:8080 noname
|
||||
```
|
||||
|
||||
`8734`可改为自己的端口
|
||||
web 游戏界面: `8734`
|
||||
联机大厅: `8324`
|
||||
端口可以自己修改
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
node index &
|
||||
(cd game && node server.js)
|
Loading…
Reference in New Issue