mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
parent
7ef427d7ef
commit
c2d304fa4d
28
docker/Dockerfile
Normal file
28
docker/Dockerfile
Normal file
|
@ -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"]
|
Loading…
Reference in New Issue
Block a user