根据 chat 示例创建 game-server,支持分布式部署、域名访问、数据库连接和基础使用
This commit is contained in:
9
game-server/Dockerfile
Normal file
9
game-server/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM node:12
|
||||
RUN mkdir /game-server
|
||||
WORKDIR /game-server
|
||||
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
|
||||
RUN cnpm install -g ts-node
|
||||
RUN cnpm install -g typescript
|
||||
RUN cnpm install -g pm2
|
||||
RUN cnpm install -g pinus
|
||||
CMD pinus start
|
||||
Reference in New Issue
Block a user