14 lines
390 B
Docker
14 lines
390 B
Docker
FROM --platform=linux/amd64 ubuntu:20.04
|
|
EXPOSE 3999
|
|
EXPOSE 3010
|
|
EXPOSE 3011
|
|
WORKDIR /works/jc/r2/game-server
|
|
RUN apt-get update && apt-get install -y sysstat curl
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
|
RUN apt-get install -y nodejs
|
|
RUN mkdir -p /works/jc/r2
|
|
COPY game-server /works/jc/r2/game-server
|
|
COPY shared /works/jc/r2/shared
|
|
RUN npm install
|
|
CMD npm run start
|