darkflameserver/Dockerfile

37 lines
1.1 KiB
Text
Raw Normal View History

2023-11-07 22:39:38 +01:00
FROM debian:12-slim
2023-11-08 19:01:10 +01:00
RUN apt-get update -qq && apt-get install -qq libmariadb3 --no-install-recommends && rm -rf /var/lib/apt/lists/*
2024-07-07 21:19:50 +02:00
COPY 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 /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}
COPY ./DarkflameServer/build ${HOMEDIR}/app
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
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" ]