Small Docker image for Pelican/Pterodactyl Minecraft servers using GraalVM Community JDK 21.
- Base image:
ghcr.io/graalvm/jdk-community:21-ol9 - Runtime: standard JVM with Graal JIT
- Intended use: Java 21 Minecraft servers on Pelican or Pterodactyl
This is not a GraalVM native-image build. It is a normal JVM container, which is the correct setup for Paper, Purpur, Velocity, and most Java server jars.
Dockerfile: image definitionentrypoint.sh: runs the panel-providedSTARTUPcommand.github/workflows/publish.yml: publishes the image to GitHub Container Registry
- Create a new GitHub repository, for example
pelican-java21-graalvm. - Push this folder to that repository.
- In GitHub, open
Settings->Actions->Generaland allow workflows if needed. - Push to
mainor create a tag likev1.0.0.
The workflow publishes to:
ghcr.io/<your-github-username>/pelican-java21-graalvm:latest
ghcr.io/<your-github-username>/pelican-java21-graalvm:21
ghcr.io/<your-github-username>/pelican-java21-graalvm:<git-tag>
Set the Docker image to:
ghcr.io/<your-github-username>/pelican-java21-graalvm:latest
For modern Paper/Purpur on Java 21, start simple first:
java -Xms4G -Xmx4G -jar server.jar noguiPaper currently recommends trying Java 21+ without extra flags before adding tuning flags.