add make based minecraft server

master
Andrew Coleman 2017-06-12 16:33:02 -04:00
parent e225aa4fe6
commit c9279391cf
1 changed files with 19 additions and 0 deletions

19
minecraft-server/Makefile Normal file
View File

@ -0,0 +1,19 @@
.PHONY: all clean
all:
docker run \
--restart always \
--detach \
--name minecraft \
--publish 25565:25565 \
--env EULA=true \
--env DIFFICULTY=normal \
--env ALLOW_NETHER=true \
--env ANNOUNCE_PLAYER_ACHIEVEMENTS=true \
--env GENERATE_STRUCTURES=true \
--env MEMORY=2G \
--volume $(MC_HOME)/minecraft:/data \
itzg/minecraft-server
clean:
docker ps -a | grep minecraft && docker rm -f -v minecraft || true