blob: cf47ea888654f8eab8ebf8d9a5e7c3d03be30530 [file] [log] [blame]
FROM ubuntu:20.04
RUN set -e -x ;\
export DEBIAN_FRONTEND=noninteractive ;\
apt-get -y update ;\
apt-get -y upgrade ;\
apt-get -y install git openjdk-8-jre-headless wget
RUN set -e -x ;\
export DEBIAN_FRONTEND=noninteractive ;\
apt-get -y install build-essential python3-dev python3-pil python3-numpy ;\
mkdir overviewer ;\
cd overviewer ;\
wget --quiet https://overviewer.org/builds/src/152/overviewer-0.15.77.tar.gz ;\
tar xvf *.tar.gz ;\
cd Minecraft-Overviewer* ;\
python3 setup.py build ;\
python3 setup.py install ;\
cd ../.. ;\
rm -rf overviewer ;\
apt-get -y purge python3-dev build-essential
RUN set -e -x ;\
useradd -rm minecraft
USER minecraft
WORKDIR /home/minecraft
ARG VERSION=1.16.1
RUN set -e -x ;\
mkdir build ;\
cd build ;\
wget --quiet https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar ;\
java -jar BuildTools.jar --rev 1.16.1 ;\
cp spigot*jar .. ;\
cd .. ;\
rm -rf build ;\
mv spigot*.jar spigot.jar
ADD worldedit-bukkit-7.2.0-beta-01.jar .
ADD worldguard-bukkit-7.0.4-beta1.jar .
RUN set -e -x ;\
mkdir -p /home/minecraft/.minecraft/versions/${VERSION}/ ;\
wget --quiet https://overviewer.org/textures/${VERSION} -O /home/minecraft/.minecraft/versions/${VERSION}/${VERSION}.jar