ADD file:a9a95cfab16803be03e59ade41622ef5061cf90f2d034304fe4ac1ee9ff30389 in / |
CMD ["bash"] |
RUN /bin/sh -c apt-get update -qq && apt-get install -qq libmariadb3 unzip --no-install-recommends && rm -rf /var/lib/apt/lists/* # buildkit |
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/ # buildkit |
RUN /bin/sh -c tar -xvzf /root/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64.tar.gz --directory /root # buildkit |
RUN /bin/sh -c cp /root/mariadb-connector-cpp-1.1.4-debian-bookworm-amd64/lib/mariadb/libmariadbcpp.so /usr/lib/ # buildkit |
ARG PUID=1000 |
ENV GROUP=dockergroup |
ENV USER=docker |
ENV HOMEDIR=/home/docker |
ENV PATH=/home/docker/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
RUN |1 PUID=1000 /bin/sh -c useradd -u "${PUID}" -m "${USER}" # buildkit |
WORKDIR /home/docker |
ADD https://github.com/DarkflameUniverse/DarkflameServer/releases/latest/download/darkflameserver-linux.zip /home/docker # buildkit |
RUN |1 PUID=1000 /bin/sh -c mkdir ${HOMEDIR}/app # buildkit |
WORKDIR /home/docker/app |
RUN |1 PUID=1000 /bin/sh -c unzip ${HOMEDIR}/darkflameserver-linux.zip # buildkit |
RUN |1 PUID=1000 /bin/sh -c rm ${HOMEDIR}/darkflameserver-linux.zip # buildkit |
COPY ./start.sh /home/docker/app/ # buildkit |
COPY ./masterconfig.ini /home/docker/app/ # buildkit |
COPY ./authconfig.ini /home/docker/app/ # buildkit |
RUN |1 PUID=1000 /bin/sh -c chown -R 1000:1000 ${HOMEDIR} # buildkit |
RUN |1 PUID=1000 /bin/sh -c chmod +x ${HOMEDIR}/app/start.sh # buildkit |
RUN |1 PUID=1000 /bin/sh -c chmod +x ${HOMEDIR}/app/*Server # buildkit |
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 docker |
WORKDIR /home/docker |
ENTRYPOINT ["${HOMEDIR}/app/start.sh"] |