Server/Dockerfile

32 lines
974 B
Docker

FROM adoptopenjdk:16-jre-hotspot
RUN mkdir logs
COPY Server/build/libs/Server.jar Server.jar
COPY configs/testmapwithportals.scenario.json default/testmapwithportals.scenario.json
COPY configs/characterConfig.character.json default/characterConfig.character.json
COPY configs/gameConfig.game.json default/gameConfig.game.json
ARG MMU_LOG_LEVEL=3
ARG MMU_CONF_MATCH=default/gameConfig.game.json
ARG MMU_CONF_CHARS=default/characterConfig.character.json
ARG MMU_CONF_SCENARIO=default/testmapwithportals.scenario.json
ARG MMU_REPLAY_DIR=/replays
ARG EXTRA_ARGS
ENV MMU_LOG_LEVEL=${MMU_LOG_LEVEL}
ENV MMU_CONF_MATCH=${MMU_CONF_MATCH}
ENV MMU_CONF_CHARS=${MMU_CONF_CHARS}
ENV MMU_CONF_SCENARIO=${MMU_CONF_SCENARIO}
ENV MMU_REPLAY_DIR=${MMU_REPLAY_DIR}
ENV EXTRA_ARGS=${EXTRA_ARGS}
CMD java -jar Server.jar --log-level $MMU_LOG_LEVEL --conf-match $MMU_CONF_MATCH --conf-chars $MMU_CONF_CHARS --conf-scenario $MMU_CONF_SCENARIO --replay ${MMU_REPLAY_DIR} ${EXTRA_ARGS}