commit 9b139643bd8c47a1871145fef7d4835eb1fcfcfa Author: Carl Kittelberger Date: Mon Apr 24 10:47:54 2017 +0200 Initial commit. diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..800a700 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +### + +.git* + +*.md + +Dockerfile +.dockerignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f83fb16 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM java:8-alpine + +ARG MINECRAFT_VERSION=1.11.2 +ARG SPIGOT_BUILD=1235 + +WORKDIR /usr/src/spigot +ADD https://hub.spigotmc.org/jenkins/job/BuildTools/59/artifact/target/BuildTools.jar /usr/src/spigot/BuildTools.jar +RUN \ + apk add --no-cache --virtual .temp-deps \ + git \ + && java -jar BuildTools.jar --rev "${SPIGOT_BUILD}" \ + && mv spigot*.jar /srv/spigot.jar \ + && chmod 444 /srv/spigot.jar + +ADD start.sh /usr/local/bin/spigot +RUN chmod +x /usr/local/bin/spigot + +ENV JAVA_ARGS "-Xmx1G" +ENV SPIGOT_ARGS "" +ENV PAPER_ARGS "" + +WORKDIR /data +VOLUME "/data" + +CMD ["spigot"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..bd9f847 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Spigot Docker image + +This image includes the Jenkins build of Spigot, a "modified Minecraft server based on CraftBukkit which provides additional performance optimizations, configuration options and features, whilst still remaining compatible with all existing plugins and consistent +with Vanilla Minecraft game mechanics." For more information check [the official SpigotMC website](https://www.spigotmc.org/wiki/about-spigot/). + +## Available tags + +All available tags are always listed [in Docker Hub](https://hub.docker.com/r/icedream/spigot/tags), the list below explains the maintained tags: + +- `latest`, `b1235`, `mc-1.11.2`, `mc-1.11`: Latest server for Minecraft 1.11.x. + +Previous builds may also be available as tags in the format `b`, for +example `b1043`. diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..7c7c72b --- /dev/null +++ b/start.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exec java $JAVA_ARGS -jar /srv/spigot.jar $SPIGOT_ARGS $SPIGOT_ARGS