2024-04-01 17:00:10 +00:00
|
|
|
FROM linuxcontainers/debian-slim:latest
|
|
|
|
|
|
|
|
# install dependencies
|
|
|
|
RUN apt update -y && apt upgrade -y && \
|
|
|
|
apt install -y \
|
|
|
|
gcc g++ cmake \
|
|
|
|
liblua5.4-dev libsqlite3-dev libreadline-dev libssl-dev libgit2-dev swig qt6-base-dev qt6-tools-dev-tools \
|
|
|
|
gosu && \
|
|
|
|
apt clean -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# prepare source code
|
2024-03-30 08:16:52 +00:00
|
|
|
COPY . /FreeKill
|
|
|
|
|
2024-04-01 17:00:10 +00:00
|
|
|
# compile and install
|
|
|
|
RUN mkdir -p /FreeKill/build && \
|
|
|
|
cd /FreeKill/build && cp -r /usr/include/lua5.4/* ../include && cmake .. -DFK_SERVER_ONLY= && make && \
|
|
|
|
cd /FreeKill && cmake --install build --config Release && \
|
|
|
|
cp /FreeKill/docker/docker-entrypoint.sh / && chmod +x /docker-entrypoint.sh && \
|
|
|
|
mkdir /data && \
|
|
|
|
cd / && rm -rf /FreeKill
|
2023-06-14 05:41:51 +00:00
|
|
|
|
2024-04-01 17:00:10 +00:00
|
|
|
WORKDIR /data
|
2023-06-14 05:41:51 +00:00
|
|
|
|
|
|
|
EXPOSE 9527
|
|
|
|
|
2024-04-01 17:00:10 +00:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
|
|
|
|
CMD ["FreeKill", "-s"]
|