blob: 048524d77c63cf4483e248842d1e0b74dc3828bd [file] [log] [blame]
Sergiusz Bazanskid1ccdcf2020-05-06 20:34:06 +02001FROM ubuntu:20.04
2
3RUN 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
9RUN 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 ;\
wasiumpksaca02f62020-06-28 10:35:10 +020014 wget --quiet https://overviewer.org/builds/src/152/overviewer-0.15.77.tar.gz ;\
Sergiusz Bazanskid1ccdcf2020-05-06 20:34:06 +020015 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
24RUN set -e -x ;\
25 useradd -rm minecraft
26
27USER minecraft
28WORKDIR /home/minecraft
wasiumpksaca02f62020-06-28 10:35:10 +020029ARG VERSION=1.16.1
Sergiusz Bazanskid1ccdcf2020-05-06 20:34:06 +020030
31RUN set -e -x ;\
wasiumpksaca02f62020-06-28 10:35:10 +020032 wget --quiet https://papermc.io/api/v1/paper/${VERSION}/latest/download ;\
Serge Bazanskibbb16232020-08-01 12:04:04 +020033 mv download server.jar
Sergiusz Bazanskid1ccdcf2020-05-06 20:34:06 +020034
wasiumpksaca02f62020-06-28 10:35:10 +020035ADD worldedit-bukkit-7.2.0-beta-01.jar .
36ADD worldguard-bukkit-7.0.4-beta1.jar .
RafaƂ Hirsz12ab93a2020-05-16 21:02:52 +020037
Sergiusz Bazanskid1ccdcf2020-05-06 20:34:06 +020038RUN set -e -x ;\
Sergiusz Bazanskid1ccdcf2020-05-06 20:34:06 +020039 mkdir -p /home/minecraft/.minecraft/versions/${VERSION}/ ;\
40 wget --quiet https://overviewer.org/textures/${VERSION} -O /home/minecraft/.minecraft/versions/${VERSION}/${VERSION}.jar