A very simple container for the minecraft server. Base image is temurin 17.
Clone and build via:
docker build . -t mcserver:version --build-arg server_jar=path/to/server.jar
Optionally, place multiple server jars in the directory jars/
then run build.py
to build all of them
(it expects paper-style naming, e.g. jars/paper-1.19.4-550.jar
).
There are 2 intended ways of using this image:
- via
docker-compose up -d
and thendocker attach testserver_compose
- via an IntelliJ run configuration: