-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmapper.Dockerfile
More file actions
35 lines (29 loc) · 834 Bytes
/
Copy pathmapper.Dockerfile
File metadata and controls
35 lines (29 loc) · 834 Bytes
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
# Base Image
FROM ubuntu:18.04
ARG MINECRAFT_VERSION
ARG OVERVIEWER_VERSION
RUN apt-get update -y
# Add build dependency
RUN apt-get update -y && \
apt-get install \
python3 \
python3-pil \
python3-dev \
python3-numpy \
python3-pip \
git \
build-essential \
wget \
cron -y
# Install Overviewer
WORKDIR /usr/local/src
RUN git clone git://github.com/overviewer/Minecraft-Overviewer.git
WORKDIR /usr/local/src/Minecraft-Overviewer
RUN git checkout tags/$OVERVIEWER_VERSION && \
python3 setup.py build
# Download JAR for texture packs
RUN mkdir -p ~/.minecraft/versions/$MINECRAFT_VERSION/ && \
wget https://overviewer.org/textures/$MINECRAFT_VERSION -O ~/.minecraft/versions/$MINECRAFT_VERSION/$MINECRAFT_VERSION.jar
# Run Cron
COPY mapper.sh /entrypoint.sh
ENTRYPOINT /entrypoint.sh