Hardened Debian 13 + Temurin 25 JRE Minecraft Server image (multi-arch, signed, zero fixable CVEs).
2.5K
A hardened, rootless-by-default, multi-arch Debian 13 (trixie-slim) + Eclipse Temurin 25 JRE container image for Minecraft Java Edition Server, built with source-compiled itzg helper binaries and security-patched mc-image-helper, drop-in compatible with itzg/minecraft-server, maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/minecraft-serverghcr.io/dgcosenza/minecraft-server (identical signed multi-arch digest)dgcosenza/minecraft-server-dockeritzg/docker-minecraft-server (Apache-2.0)EULA & Redistribution Notice: This image never bundles any proprietary Mojang / Minecraft server JARs (explicitly asserted in CI on every build). Consistent with upstream
itzg/minecraft-server, end users must explicitly accept the Minecraft End User License Agreement by setting-e EULA=TRUE, after which the official server binary is downloaded directly at container startup.
| Component | Resolved Version |
|---|---|
| Base OS | Debian 13.8 (trixie-slim) |
| Java Runtime | Eclipse Temurin jdk-25.0.5.1+2 (JRE) |
| itzg/docker-minecraft-server | 2026.11.1 |
| itzg/mc-image-helper | 1.80.0 (source-built, patched deps) |
| itzg/mc-monitor | 1.21.1 (source-built) |
| itzg/mc-server-runner | 1.18.0 (source-built) |
| itzg/rcon-cli | 1.10.0 (source-built) |
| itzg/restify | 1.7.22 (source-built) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 207.6 MB, arm64: 541.1 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/minecraft-server@sha256:86bb0081b1328cb70c398d25bc389e4ac4142d60aa180f77682e5345840cf491 |
| GHCR mirror | ghcr.io/dgcosenza/minecraft-server@sha256:86bb0081b1328cb70c398d25bc389e4ac4142d60aa180f77682e5345840cf491 |
| Supply chain | Cosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance |
| Security gate (Trivy + Grype on SBOM) | 0 fixable findings of any severity (22 upstream-unfixed) |
Recent upstream changes:
2026.11.1 -> 2026.11.1 (commit 0699bd8497cb)nojdk-25.0.5.1+2 (amd64 & arm64 verified via Adoptium API)mc-image-helper 1.80.0, mc-monitor 1.21.1, mc-server-runner 1.18.0, rcon-cli 1.10.0, restify 1.7.22micrometer-core 1.16.9, bcprov-jdk18on 1.87, scala-library 2.13.18, tools.jackson.core 3.1.9, logback 1.5.38, classgraph 4.8.200, `kotli...Identical multi-arch OCI digests are published to Docker Hub (dgcosenza/minecraft-server) and GHCR (ghcr.io/dgcosenza/minecraft-server), accompanied by an automated signed GitHub Release:
| Tag | Policy | Description |
|---|---|---|
<upstream-version>-<YYYYMMDD> (e.g. 2026.11.1-20261125) | Immutable | Date-stamped daily build pinned to that upstream release and base refresh. |
sha-<short> | Immutable | Packaging repository Git commit tag. |
<upstream-version> (e.g. 2026.11.1) | Moving | Latest verified daily build for that upstream itzg/docker-minecraft-server release. |
latest | Moving | Latest verified daily Debian 13 + Temurin 25 JRE build. |
Production pinning: Pin by immutable registry digest rather than an unpinned moving tag:
image: dgcosenza/minecraft-server:latest@sha256:<digest>
# or via GitHub Container Registry (identical digest):
image: ghcr.io/dgcosenza/minecraft-server:latest@sha256:<digest>
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Built with native x86_64 Go, Gradle, and Temurin 25 JRE (x64), end-to-end smoke-tested (read_only + cap_drop ALL + runtime Vanilla download + mc-health + rcon-cli + graceful SIGTERM), Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed. |
linux/arm64 | Published & natively tested | Built with native ARM64 Go, Gradle, and Temurin 25 JRE (aarch64), end-to-end smoke-tested (read_only + cap_drop ALL + runtime Vanilla download + mc-health + rcon-cli + graceful SIGTERM), Dive-gated, Syft/Trivy/Grype-scanned, and Cosign-signed. |
Ensure your host ./data directory is owned by UID/GID 1000:1000:
mkdir -p ./data && chown 1000:1000 ./data
docker run -d --name minecraft-server \
--user 1000:1000 \
--read-only \
--tmpfs /tmp:rw,noexec,nosuid,size=128m \
--cap-drop ALL \
--security-opt no-new-privileges:true \
-p 25565:25565 \
-e EULA=TRUE \
-e TYPE=VANILLA \
-e VERSION=LATEST \
-e MEMORY=2G \
-e JVM_OPTS="--enable-native-access=ALL-UNNAMED" \
-e RCON_PASSWORD="${RCON_PASSWORD}" \
-v ./data:/data \
dgcosenza/minecraft-server:latest
See docker-compose.example.yml:
services:
mc:
image: dgcosenza/minecraft-server:latest
container_name: minecraft-server
restart: unless-stopped
user: "1000:1000"
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid,size=128m
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
tty: true
stdin_open: true
ports:
- "25565:25565"
environment:
EULA: "TRUE"
TYPE: "VANILLA"
VERSION: "LATEST"
MEMORY: "2G"
JVM_OPTS: "--enable-native-access=ALL-UNNAMED"
RCON_PASSWORD: "${RCON_PASSWORD}"
TZ: "UTC"
volumes:
- ./data:/data
healthcheck:
test: ["CMD-SHELL", "mc-health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 2m
This image includes the full upstream itzg/docker-minecraft-server startup script suite and source-built mc-image-helper, preserving drop-in compatibility with standard environment variables.
| Variable | Description | Default |
|---|---|---|
EULA | Must be set to TRUE to accept the Minecraft EULA and allow runtime server download | "" (required) |
TYPE | Server type (VANILLA, PAPER, FABRIC, FORGE, NEOFORGE, PURPUR, SPIGOT, MODRINTH, CURSEFORGE, etc.) | VANILLA |
VERSION | Minecraft version (LATEST, SNAPSHOT, or explicit version such as 1.21.11 / 26.3) | LATEST |
MEMORY / INIT_MEMORY / MAX_MEMORY | JVM heap size (supports absolute values like 2G or percentages) | 1G |
JVM_OPTS / JVM_XX_OPTS / JVM_DD_OPTS | Additional JVM flags (e.g. --enable-native-access=ALL-UNNAMED) | "" |
ENABLE_RCON / RCON_PORT / RCON_PASSWORD / RCON_PASSWORD_FILE | Built-in RCON administration settings (rcon-cli reads /data/.rcon-cli.yaml automatically) | true / 25575 / random |
MOTD / DIFFICULTY / MODE / MAX_PLAYERS / ONLINE_MODE / WHITELIST / OPS | Standard server.properties and access-control settings | Upstream defaults |
UID / GID | Target UID/GID (used when explicitly started as root --user 0 for volume remapping) | 1000 / 1000 |
STOP_DURATION | Graceful shutdown wait window before mc-server-runner terminates Java | 60 |
TZ | Container timezone | UTC |
| Path / Port | Purpose |
|---|---|
/data | Persistent world data, server.properties, downloaded server JAR, logs, whitelist, and ops (owned by 1000:1000) |
25565/tcp | Minecraft Java Edition server port |
25575/tcp | Optional RCON port (keep internal; never expose publicly) |
minecraft (UID=1000, GID=1000) under /usr/bin/tini PID 1 and mc-server-runner./data directory uses a UID/GID other than 1000:1000, either chown the host directory to match --user <uid>:<gid> (recommended, stays rootless) or start with --user 0 and -e UID=<uid> -e GID=<gid>, in which case /image/scripts/start adjusts ownership and immediately drops privileges via our zero-Go setpriv-based /usr/local/bin/gosu wrapper.mc-health
Built into the image (--start-period=2m --interval=30s --timeout=10s --retries=3), invoking source-built mc-monitor status against localhost:25565 (or SERVER_HOST/SERVER_PORT) and verifying a valid Minecraft server list ping response.
itzg/minecraft-serverdocker exec minecraft-server mc-health) and back up your /data directory (especially /data/world, server.properties, ops.json, and whitelist.json) before switching./data on the host is owned by 1000:1000 (matching default UID=1000/GID=1000). If it uses a different UID/GID, pass matching --user or --user 0 with UID/GID.EULA, TYPE, VERSION, JVM_OPTS, RCON_PASSWORD, etc.), volume mount (./data:/data), and port (25565:25565) unchanged.image: with a digest-pinned dgcosenza/minecraft-server:latest@sha256:<digest> (or GHCR), and recreate the container with docker compose up -d.Every published digest (multi-arch index and per-architecture manifests) on both Docker Hub and GHCR is keyless-signed with Sigstore Cosign (GitHub OIDC), attested with SPDX and CycloneDX SBOMs, and backed by SLSA Build L3 provenance (actions/attest-build-provenance).
cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/minecraft-server-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/minecraft-server:latest
# Or against Docker Hub (identical digest):
cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/minecraft-server-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
dgcosenza/minecraft-server:latest
cosign verify-attestation \
--type spdxjson \
--certificate-identity-regexp="^https://github\.com/dgcosenza/minecraft-server-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/minecraft-server@sha256:<arch-digest>
gh attestation verify oci://ghcr.io/dgcosenza/minecraft-server:latest --owner dgcosenza
--ignore-unfixed gate) and Grype scanning the SPDX SBOM (--only-fixed --fail-on negligible), and enforces a Dive efficiency gate (lowestEfficiency: 0.95, highestUserWastedPercent: 0.05).itzg Go utilities (mc-monitor, mc-server-runner, rcon-cli, restify) are compiled from official tags with the current patched Go toolchain and updated golang.org/x/* packages; mc-image-helper is compiled from source with patched transitive Java dependencies; prebuilt tianon/gosu is replaced by a zero-Go setpriv wrapper.minecraft (1000:1000) by default and is smoke-tested in CI with --read-only, --cap-drop ALL, and --security-opt no-new-privileges:true.renovate.json) pins base image digests and GitHub Action commit SHAs; Dependabot security alerts and OpenSSF Scorecard monitoring are enabled.SECURITY.md for responsible disclosure.docker buildx build --platform linux/amd64 --load -t dgcosenza/minecraft-server:local .
.github/workflows/daily.yml runs automatically every day at 05:23 UTC, on pushes to main, on pull requests (verification only), and via workflow_dispatch:
itzg/docker-minecraft-server, itzg/mc-image-helper, itzg/mc-monitor, itzg/mc-server-runner, itzg/rcon-cli, and itzg/restify via the authenticated GitHub API (GH_TOKEN), resolves the latest Eclipse Temurin 25 JRE (x64 + aarch64) checksums from Adoptium, resolves patched Maven dependency versions and current Debian/Go/JDK base digests, and emits upstream-changes.md.linux/amd64 and linux/arm64 runners with --no-cache on schedule, upgrading Debian 13 packages and recompiling Go and Java helpers from source.versions.json, uploads Trivy SARIF, and blocks publication on any fixable finding of any severity in Trivy or Grype (scanning the SPDX SBOM), alongside the Dive efficiency gate.tests/smoke.sh natively on both architectures, asserting zero baked Mojang JARs, non-root 1000:1000 execution, EULA refusal check, read-only + cap_drop ALL live startup, mc-health, rcon-cli, negative healthcheck failure, and clean SIGTERM world save.latest, <upstream-version>, <upstream-version>-<YYYYMMDD>, and sha-<short>; signs every digest and attaches SPDX/CycloneDX SBOM attestations via Cosign keyless OIDC; emits SLSA Build L3 provenance; and publishes a signed GitHub Release with checksums and SBOMs.versions.json, the README Current Versions block, and a dated CHANGELOG.md entry via github-actions[bot] ([skip ci], validated by public-check.sh), then syncs the Docker Hub overview and short description.ci-failure on any main or scheduled failure, and auto-closes it on the next green run.trixie-slim) + SHA-256 verified Adoptium Temurin 25 JRE: Replaces upstream's Ubuntu base with minimal, daily-patched Debian 13 while preserving exact Eclipse Temurin 25 LTS JVM behavior and performance.gosu, mc-monitor, and rcon-cli as well as transitive Java CVEs (micrometer-core, bcprov-jdk18on, scala-library, tools.jackson.core, logback, classgraph, kotlin-stdlib) in mc-image-helper.setpriv shim at /usr/local/bin/gosu: Removes the 26-CVE prebuilt gosu Go binary permanently while remaining compatible with no-new-privileges:true when --user 0 UID/GID remapping is explicitly requested.imagemagick, mysql-client, nfs-common, git-lfs, sudo, and the unsigned third-party Metalcape/knock binary) to keep the image compact and minimize vulnerability surface. Users requiring automatic non-PNG server icon conversion can provide a pre-sized 64x64 PNG server-icon.png directly in /data.tini PID 1 + mc-server-runner: Ensures clean zombie reaping and reliable SIGTERM forwarding to mc-server-runner, which issues stop to save chunks cleanly before exit.DL3008 ignore: Daily --no-cache security rebuilds intentionally pull the newest Debian 13 security updates via apt-get.This repository follows a clear packaging-vs-upstream license split:
packaging: MIT): Licensed under the MIT License — copyright Daniel G. Cosenza from FNX Labs.upstream: Apache-2.0): Incorporates itzg/docker-minecraft-server, itzg/mc-server-runner, itzg/rcon-cli, and itzg/restify under the Apache License 2.0, alongside itzg/mc-image-helper, itzg/mc-monitor, and CreeperHost/Log4jPatcher under the MIT License, and Eclipse Temurin 25 JRE under GPL-2.0 with Classpath Exception.Full third-party notices are maintained in THIRD-PARTY-NOTICES.md. Release history is maintained in CHANGELOG.md.
Maintained by Daniel G. Cosenza from FNX Labs.
Content type
Image
Digest
sha256:86bb0081b…
Size
197.9 MB
Last updated
about 12 hours ago
docker pull dgcosenza/minecraft-server