This is a docker container running the Paper Minecraft Server and based off Google's distroless Java container, making it lighter and more secure.
PaperMC runs with aikar's optimized flags in order to try and improve the performance.
Launch the container, this will create the PaperMC directory in your current directory
optional: set -Xms2G -Xmx2G
to the Amount of RAM to allocate to PaperMC
$ docker run \
-v $(pwd)/papermc:/papermc \
-e JAVA_TOOL_OPTIONS="-Xms2G -Xmx2G" \
-p 25565:25565 \
guillaumedsde/papermc-docker-distroless:latest
version: '3.3'
services:
papermc:
volumes:
- '<data_dir>/papermc:/papermc'
environment:
- 'JAVA_TOOL_OPTIONS=-Xms2G -Xmx2G'
ports:
- '25565:25565'
image: guillaumedsde/papermc-docker-distroless:latest
- Run as non-root user (Docker volumes do not support this yet)