forked from mide/minecraft-overviewer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (25 loc) · 998 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
# To use this Docker image, make sure you set up the mounts properly.
#
# The Minecraft server files are expected at
# /home/minecraft/server
#
# The Minecraft-Overviewer render will be output at
# /home/minecraft/render
FROM debian:latest
MAINTAINER Mark Ide Jr (https://www.mide.io)
RUN apt-get update && \
apt-get install -y wget gnupg && \
echo "deb http://overviewer.org/debian ./" >> /etc/apt/sources.list && \
wget -O - https://overviewer.org/debian/overviewer.gpg.asc | apt-key add - && \
apt-get update && \
apt-get install -y minecraft-overviewer && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
useradd -m minecraft && \
mkdir -p /home/minecraft/render /home/minecraft/server
COPY config/config.py /home/minecraft/config.py
COPY entrypoint.sh /home/minecraft/entrypoint.sh
RUN chown minecraft:minecraft -R /home/minecraft/
WORKDIR /home/minecraft/
USER minecraft
CMD ["bash", "/home/minecraft/entrypoint.sh"]