...
 
Commits (2)
FROM debian:jessie
FROM openjdk:11-jre
MAINTAINER Chris <chris@zom.bi>
EXPOSE 8123
EXPOSE 25565
EXPOSE 25565/udp
ENV \
DEPENDENCIES="openjdk-7-jre-headless git wget tar"
DEPENDENCIES="git wget tar"
RUN \
apt-get update &&\
......@@ -15,7 +15,7 @@ RUN \
WORKDIR /usr/games
VOLUME ["/usr/games/mcserv"]
RUN \
chown -R games: . &&\
chown games: /usr/games /usr/games/mcserv &&\
chmod 775 mcserv
USER games
......
......@@ -13,6 +13,11 @@ This might take a few minutes depending on the internet connection and computing
### Running spigot-server
First create the storage directory with the correct permissions
mkdir -p /data/minecraft/mc-server
chown 5:60 /data/minecraft/mc-server
```
docker run -it -d \
-v /data/minecraft/mc-server:/usr/games/mcserv \
......@@ -22,3 +27,8 @@ docker run -it -d \
zombi/spigot-server
```
on the first run the buildtools are building the spigot jar file and the container is exiting once done.
restart the container afterwards to run the minecraft server
docker start spigot-server