|
| 1 | +# Bukkit for Docker |
| 2 | +# Copyright (C) 2015 Bren Briggs |
| 3 | + |
| 4 | +# This program is free software; you can redistribute it and/or modify |
| 5 | +# it under the terms of the GNU General Public License as published by |
| 6 | +# the Free Software Foundation; either version 2 of the License, or |
| 7 | +# (at your option) any later version. |
| 8 | + |
| 9 | +# This program is distributed in the hope that it will be useful, |
| 10 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | +# GNU General Public License for more details. |
| 13 | + |
| 14 | +# You should have received a copy of the GNU General Public License along |
| 15 | +# with this program; if not, write to the Free Software Foundation, Inc., |
| 16 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 17 | + |
| 18 | +FROM openjdk:8-alpine as builder |
| 19 | +WORKDIR /minecraft |
| 20 | +RUN apk update |
| 21 | +RUN apk --no-cache add wget git bash |
| 22 | +RUN wget -O /minecraft/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar |
| 23 | +RUN java -jar BuildTools.jar --rev 1.9.2 2>&1 /dev/null |
| 24 | + |
| 25 | +FROM openjdk:8-alpine |
| 26 | +WORKDIR /root |
| 27 | +RUN apk update |
| 28 | +RUN apk --no-cache add bash |
| 29 | +COPY --from=builder /minecraft/craftbukkit-*.jar /root |
| 30 | +COPY --from=builder /minecraft/spigot-*.jar /root |
| 31 | +EXPOSE 25565 |
| 32 | +WORKDIR /data |
| 33 | +ADD start-bukkit.sh /root/start-bukkit.sh |
| 34 | +ADD start-spigot.sh /root/start-spigot.sh |
| 35 | +CMD ["/bin/bash", "/root/start-bukkit.sh"] |
0 commit comments