darkflameserver/Dockerfile

43 lines
1.3 KiB
Text
Raw Normal View History

2023-11-07 22:39:38 +01:00
FROM debian:12-slim
2024-07-07 21:57:36 +02:00
RUN apt-get update -qq && apt-get install -qq libmariadb3 unzip --no-install-recommends && rm -rf /var/lib/apt/lists/*
2024-07-07 22:06:26 +02:00
ADD https://dlm.mariadb.com/3848227/Connectors/cpp/connector-cpp-1.1.4/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64.tar.gz /root/
RUN tar -xvzf /root/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64.tar.gz --directory /root
RUN cp /root/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64/lib/mariadb/libmariadbcpp.so /usr/lib/
2023-11-08 19:01:10 +01:00
2023-11-10 21:17:02 +01:00
ARG PUID=1000
ENV GROUP dockergroup
ENV USER docker
ENV HOMEDIR "/home/${USER}"
ENV PATH ${HOMEDIR}/.local/bin:$PATH
RUN useradd -u "${PUID}" -m "${USER}"
WORKDIR ${HOMEDIR}
2024-07-07 21:57:36 +02:00
ADD https://github.com/DarkflameUniverse/DarkflameServer/releases/latest/download/darkflameserver-linux.zip ${HOMEDIR}
RUN mkdir ${HOMEDIR}/app
WORKDIR ${HOMEDIR}/app
RUN unzip ${HOMEDIR}/darkflameserver-linux.zip
RUN rm ${HOMEDIR}/darkflameserver-linux.zip
2023-11-10 21:17:02 +01:00
COPY ./start.sh ${HOMEDIR}/app/
COPY ./masterconfig.ini ${HOMEDIR}/app/
COPY ./authconfig.ini ${HOMEDIR}/app/
2023-11-07 22:39:38 +01:00
2023-11-10 21:17:02 +01:00
RUN chown -R 1000:1000 ${HOMEDIR}
RUN chmod +x ${HOMEDIR}/app/start.sh
2024-07-07 22:04:28 +02:00
RUN chmod +x ${HOMEDIR}/app/*Server
2023-11-07 22:39:38 +01:00
ENV MYSQL_HOST darkflame_db
ENV MYSQL_DATABASE darkflame
ENV MYSQL_USERNAME darkflame
ENV MAX_CLIENTS 999
ENV TEAM_LOOT 1
ENV CLIENT_VERSION 171022
2023-11-10 21:17:02 +01:00
USER ${USER}
WORKDIR ${HOMEDIR}
ENTRYPOINT [ "${HOMEDIR}/app/start.sh" ]