The Dockerfile in this directory provides a full Docker image to set up an Evolved Infinity server based on OpenJDK 8 and Alpine Linux as base image.
To build the image, first clone this repository and change to this directory.
$ git clone https://github.com/zekroTJA/dockerfiles.git . --depth 1
$ cd gameserver/minecraft/evi
Then, build the image. You can pass the desired server version as build argument VERSION
. The value latest
will always refer to the latest release version of the server.
$ docker build . -t evi --build-arg VERSION=latest
You can also use the prebuilt image which can be found on Docker Hub:
https://hub.docker.com/r/zekro/evi
Please do not consider this pre-built image to be always up-to-date.
$ docker pull zekro/evi:latest
It is recommendet to use docker-compose to run this image. You can use the following service configuration for that.
version: "3"
services:
evi:
image: "zekro/evi:latest"
environment:
- "XMS=1G"
- "XMX=4G"
ports:
- "25565:25565" # minecraft port
- "25575:25575" # rcon port
volumes:
- "./evi/world:/var/server/world"
- "./evi/config:/var/server/config"
- "./evi/server.properties:/var/server/server.properties"
- "./evi/white-list.json:/var/server/white-list.json"
- "./evi/ops.json:/var/server/ops.json"
restart: on-failure