Sergiusz Bazanski | d1ccdcf | 2020-05-06 20:34:06 +0200 | [diff] [blame] | 1 | FROM ubuntu:20.04 |
| 2 | |
| 3 | RUN set -e -x ;\ |
| 4 | export DEBIAN_FRONTEND=noninteractive ;\ |
| 5 | apt-get -y update ;\ |
| 6 | apt-get -y upgrade ;\ |
| 7 | apt-get -y install git openjdk-8-jre-headless wget |
| 8 | |
| 9 | RUN set -e -x ;\ |
| 10 | export DEBIAN_FRONTEND=noninteractive ;\ |
| 11 | apt-get -y install build-essential python3-dev python3-pil python3-numpy ;\ |
| 12 | mkdir overviewer ;\ |
| 13 | cd overviewer ;\ |
wasiumpks | aca02f6 | 2020-06-28 10:35:10 +0200 | [diff] [blame] | 14 | wget --quiet https://overviewer.org/builds/src/152/overviewer-0.15.77.tar.gz ;\ |
Sergiusz Bazanski | d1ccdcf | 2020-05-06 20:34:06 +0200 | [diff] [blame] | 15 | tar xvf *.tar.gz ;\ |
| 16 | cd Minecraft-Overviewer* ;\ |
| 17 | python3 setup.py build ;\ |
| 18 | python3 setup.py install ;\ |
| 19 | cd ../.. ;\ |
| 20 | rm -rf overviewer ;\ |
| 21 | apt-get -y purge python3-dev build-essential |
| 22 | |
| 23 | |
| 24 | RUN set -e -x ;\ |
| 25 | useradd -rm minecraft |
| 26 | |
| 27 | USER minecraft |
| 28 | WORKDIR /home/minecraft |
wasiumpks | aca02f6 | 2020-06-28 10:35:10 +0200 | [diff] [blame] | 29 | ARG VERSION=1.16.1 |
Sergiusz Bazanski | d1ccdcf | 2020-05-06 20:34:06 +0200 | [diff] [blame] | 30 | |
| 31 | RUN set -e -x ;\ |
| 32 | mkdir build ;\ |
| 33 | cd build ;\ |
wasiumpks | aca02f6 | 2020-06-28 10:35:10 +0200 | [diff] [blame] | 34 | wget --quiet https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar ;\ |
| 35 | java -jar BuildTools.jar --rev 1.16.1 ;\ |
Sergiusz Bazanski | d1ccdcf | 2020-05-06 20:34:06 +0200 | [diff] [blame] | 36 | cp spigot*jar .. ;\ |
| 37 | cd .. ;\ |
| 38 | rm -rf build ;\ |
| 39 | mv spigot*.jar spigot.jar |
| 40 | |
wasiumpks | aca02f6 | 2020-06-28 10:35:10 +0200 | [diff] [blame] | 41 | ADD worldedit-bukkit-7.2.0-beta-01.jar . |
| 42 | ADD worldguard-bukkit-7.0.4-beta1.jar . |
RafaĆ Hirsz | 12ab93a | 2020-05-16 21:02:52 +0200 | [diff] [blame] | 43 | |
Sergiusz Bazanski | d1ccdcf | 2020-05-06 20:34:06 +0200 | [diff] [blame] | 44 | RUN set -e -x ;\ |
Sergiusz Bazanski | d1ccdcf | 2020-05-06 20:34:06 +0200 | [diff] [blame] | 45 | mkdir -p /home/minecraft/.minecraft/versions/${VERSION}/ ;\ |
| 46 | wget --quiet https://overviewer.org/textures/${VERSION} -O /home/minecraft/.minecraft/versions/${VERSION}/${VERSION}.jar |