PaperMC in a docker container. PaperMC is a fork of the Minecraft Server API Spigot which aims to improve performance, reduce memory usage and to simplify aswell as to improve the API usage.
To find out more about Paper visit https://papermc.io/ or https://github.com/PaperMC/Paper
The package is available on GitHub Container Registry as ghcr.io/benpueschel/paper-docker:main
.
To automatically pull the image and run a container, use:
docker run -p 25565:25565 -d --rm --name my-paper-server \
-v my-paper-volume:/home/minecraft/paper \
ghcr.io/benpueschel/paper-docker:main
Container uses the following environment variables:
MC_VERSION
: target minecraft version. defaults tolatest
PAPER_BUILD
: target build. defaults tolatest
MIN_RAM
: jvm min heap size (-Xms). Defaults to256M
MAX_RAM
: jvm max heap size (-Xmx). Defaults to1G
JAVA_OPTS
: extra options to be passed to the jvm. optional
First, clone the repository:
git clone https://github.com/benpueschel/paper-docker.git && cd paper-docker
Then build the image with:
docker build -t my-paper-image .
Finally, run the container with the custom image using:
docker run -p 25565:25565 -d --rm --name my-paper-server \
-v my-paper-volume:/home/minecraft/paper \
my-paper-image