makefile编译客户端协议、生成服务器配置表 && docker镜像构建

This commit is contained in:
flswld
2023-01-19 23:05:10 +08:00
parent 2983c16272
commit cda96a81df
16 changed files with 217 additions and 114 deletions

View File

@@ -0,0 +1,9 @@
FROM ubuntu:18.04
EXPOSE 8080/tcp
WORKDIR /dispatch
COPY ./bin/dispatch ./dispatch
RUN chmod +x ./dispatch
ENTRYPOINT ["./dispatch"]

7
docker/fight/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM ubuntu:18.04
WORKDIR /fight
COPY ./bin/fight ./fight
RUN chmod +x ./fight
ENTRYPOINT ["./fight"]

10
docker/gate/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM ubuntu:18.04
EXPOSE 22222/udp
EXPOSE 33333/tcp
WORKDIR /gate
COPY ./bin/gate ./gate
RUN chmod +x ./gate
ENTRYPOINT ["./gate"]

9
docker/gm/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM ubuntu:18.04
EXPOSE 9001/tcp
WORKDIR /gm
COPY ./bin/gm ./gm
RUN chmod +x ./gm
ENTRYPOINT ["./gm"]

7
docker/gs/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM ubuntu:18.04
WORKDIR /gs
COPY ./bin/gs ./gs
RUN chmod +x ./gs
ENTRYPOINT ["./gs"]

7
docker/node/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM ubuntu:18.04
WORKDIR /node
COPY ./bin/node ./node
RUN chmod +x ./node
ENTRYPOINT ["./node"]

View File

@@ -0,0 +1,7 @@
FROM ubuntu:18.04
WORKDIR /pathfinding
COPY ./bin/pathfinding ./pathfinding
RUN chmod +x ./pathfinding
ENTRYPOINT ["./pathfinding"]