From c2d304fa4d9ac83fd00993e2a4c2bb2c15d9c090 Mon Sep 17 00:00:00 2001 From: jianziban <747025114@qq.com> Date: Wed, 14 Jun 2023 13:41:51 +0800 Subject: [PATCH] build dockerfile (#183) using dockerfile to deploy --- docker/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 00000000..1ee51984 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,28 @@ +FROM ubuntu +USER root + +#update apt dependencies +RUN apt update -y && apt upgrade -y +#install git +RUN apt install git -y +#fetch for the lastest code of freekill +RUN git clone https://gitee.com/notify-ctrl/FreeKill + +#install compile tools +RUN apt install -y gcc g++ cmake || true +RUN apt install -y liblua5.4-dev libsqlite3-dev libreadline-dev libssl-dev libgit2-dev swig qt6-base-dev qt6-tools-dev-tools + +#change workdir to FreeKill +WORKDIR FreeKill + +#compile source code +RUN mkdir build && cd build && cp -r /usr/include/lua5.4/* ../include && cmake .. -DFK_SERVER_ONLY= +RUN cd build && make + +#build soft link +RUN ln -s build/FreeKill + +EXPOSE 9527 + +#optional to override +# CMD ["/FreeKill/build/FreeKill", "-s"]