A Dockerfile for Spigot
Build Spigot for a spesific version of Minecraft.
For the same reason that the Spigot project can't publish prebuilt Spigot JARs, I can't publish the built images. But you can use this Dockerfile to make your own. The Docker build will download and invoke the Spigot build tools, and copy the output spigot.jar
into a Distroless Java image.
export MC_VERSION=1.15.2
export DOCKER_REPO=myrepo/spigot
docker build . --build-arg VERSION=$MC_VERSION --tag $DOCKER_REPO:$MC_VERSION
docker push $DOCKER_REPO