mirror of
https://github.com//cppla/ServerStatus
synced 2025-12-14 01:33:54 +08:00
一键安装服务端和客户端
This commit is contained in:
18
autodeploy/Dockerfile
Executable file
18
autodeploy/Dockerfile
Executable file
@@ -0,0 +1,18 @@
|
||||
FROM nginx
|
||||
|
||||
MAINTAINER cppla https://cpp.la
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install gcc g++ make git
|
||||
RUN git clone https://github.com/cppla/ServerStatus
|
||||
RUN cp -rf /ServerStatus/web/* /usr/share/nginx/html/
|
||||
|
||||
|
||||
WORKDIR /ServerStatus/server
|
||||
|
||||
RUN make
|
||||
RUN pwd && ls -a
|
||||
|
||||
EXPOSE 80 35601
|
||||
|
||||
CMD nohup sh -c '/etc/init.d/nginx start && /ServerStatus/server/sergate --config=/ServerStatus/server/config.json --web-dir=/usr/share/nginx/html'
|
||||
Reference in New Issue
Block a user