FROM debian:12-slim RUN apt-get update -qq && apt-get install -qq libmariadb3 unzip --no-install-recommends && rm -rf /var/lib/apt/lists/* # 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/ 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} 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 COPY ./start.sh ${HOMEDIR}/app/ COPY ./masterconfig.ini ${HOMEDIR}/app/ COPY ./authconfig.ini ${HOMEDIR}/app/ RUN chown -R 1000:1000 ${HOMEDIR} RUN chmod +x ${HOMEDIR}/app/start.sh RUN chmod +x ${HOMEDIR}/app/*Server 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 USER ${USER} WORKDIR ${HOMEDIR} ENTRYPOINT [ "${HOMEDIR}/app/start.sh" ]