blob: fbf17ddfd7e61c1468b5c3ef3632d3aa0bae0171 [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://github.com/overviewer/Minecraft-Overviewer/archive/v0.15.0.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
RUN set -e -x ;\
mkdir build ;\
cd build ;\
wget --quiet https://papermc.io/api/v1/paper/1.15.2/333/download ;\
cp paper*jar .. ;\
cd .. ;\
rm -rf build ;\
mv paper*.jar paper.jar
ADD worldedit-bukkit-7.1.0.jar .
ADD worldguard-bukkit-7.0.2.jar .
RUN set -e -x ;\
VERSION=1.15.2 ;\
mkdir -p /home/minecraft/.minecraft/versions/${VERSION}/ ;\
wget --quiet https://overviewer.org/textures/${VERSION} -O /home/minecraft/.minecraft/versions/${VERSION}/${VERSION}.jar