darkflameserver/Dockerfile

34 lines
762 B
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/*
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" ]