2021-06-05 02:14:55 +00:00
|
|
|
FROM adoptopenjdk:16-jre-hotspot
|
2021-06-04 22:54:57 +00:00
|
|
|
RUN mkdir logs
|
2021-06-05 02:14:55 +00:00
|
|
|
|
2021-06-04 22:54:57 +00:00
|
|
|
COPY Server/build/libs/Server.jar Server.jar
|
2021-06-05 02:14:55 +00:00
|
|
|
|
|
|
|
COPY configs/asgard.scenario.json default/asgard.scenario.json
|
|
|
|
COPY configs/marvelheros.character.json default/marvelheroes.character.json
|
|
|
|
COPY configs/matchconfig_1.game.json default/matchconfig.game.json
|
|
|
|
|
|
|
|
ARG MMU_LOG_LEVEL=3
|
|
|
|
|
|
|
|
ARG MMU_CONF_MATCH=default/matchconfig.game.json
|
|
|
|
ARG MMU_CONF_CHARS=default/marvelheroes.character.json
|
|
|
|
ARG MMU_CONF_SCENARIO=default/asgard.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}
|