forked from nimmis/docker-spigot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (25 loc) · 1.03 KB
/
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
36
37
FROM nimmis/java:openjdk-8-jdk
MAINTAINER nimmis <[email protected]>
# SPIGOT_HOME default directory for SPIGOT-server
# SPIGOT_VER default minecraft version to compile
ENV SPIGOT_HOME=/minecraft \
SPIGOT_VER=latest
# add extra files needed
COPY rootfs /
# add overviewer repository & key
RUN echo "deb http://overviewer.org/debian ./" >> /etc/apt/sources.list && curl http://overviewer.org/debian/overviewer.gpg.asc | apt-key add -
RUN apt-get update && \
# upgrade OS
apt-get -y dist-upgrade && \
# Make info file about this build
printf "Build of nimmis/spigot:latest, date: %s\n" `date -u +"%Y-%m-%dT%H:%M:%SZ"` > /etc/BUILDS/spigot && \
# install applications, including nginx & overviewer
apt-get install -y wget git nginx minecraft-overviewer && \
# Make special user for minecraft to run in
/usr/sbin/useradd -s /bin/bash -d /minecraft -m minecraft && \
# remove apt cache from image
apt-get clean all
# expose minecraft port
EXPOSE 25565
# expose nginx port for overviewer
EXPOSE 80