-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
35 lines (26 loc) · 901 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
build-essential \
python3-pillow \
python3-dev \
python3-numpy \
git \
wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp/overviewer
RUN git clone --progress --verbose https://github.com/overviewer/Minecraft-Overviewer.git .
# Alternative to https://mcversions.net/download/1.18.1
ADD https://overviewer.org/textures/latest /tmp/overviewer/client.jar
RUN chmod 775 /tmp/overviewer/client.jar
RUN python3 setup.py build
WORKDIR /tmp/server
WORKDIR /tmp/export
WORKDIR /tmp/config
# use sample config as fallback
ADD config_sample/config.py /tmp/config/config.py
RUN useradd -ms /bin/bash overviewer-mc
RUN chown overviewer-mc:overviewer-mc /tmp/export
USER overviewer-mc
#eg. "--genpoi"
ENV overviewerParams=""
ENTRYPOINT /tmp/overviewer/overviewer.py --config=/tmp/config/config.py ${overviewerParams}