Initial commit.

develop
Icedream 2017-04-24 10:47:54 +02:00
commit 9b139643bd
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
4 changed files with 48 additions and 0 deletions

8
.dockerignore Normal file
View File

@ -0,0 +1,8 @@
###
.git*
*.md
Dockerfile
.dockerignore

25
Dockerfile Normal file
View File

@ -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"]

13
README.md Normal file
View File

@ -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<number>`, for
example `b1043`.

2
start.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec java $JAVA_ARGS -jar /srv/spigot.jar $SPIGOT_ARGS $SPIGOT_ARGS