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