blob: d1c39e443c1669b827bd43e91188e5c22a559a7e [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 ;\
wget --quiet https://papermc.io/api/v1/paper/${VERSION}/latest/download ;\
mv download paper.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