Files
ZYZ/game-server/Dockerfile

10 lines
249 B
Docker

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