minecraft-spigot/Dockerfile

27 lines
437 B
Docker

FROM openjdk:11-jre
MAINTAINER Chris <chris@zom.bi>
EXPOSE 8123
EXPOSE 25565
EXPOSE 25565/udp
ENV \
DEPENDENCIES="git wget tar"
RUN \
apt-get update &&\
apt-get -y install ${DEPENDENCIES} &&\
apt-get clean
WORKDIR /usr/games
VOLUME ["/usr/games/mcserv"]
RUN \
chown games: /usr/games /usr/games/mcserv &&\
chmod 775 mcserv
USER games
WORKDIR /usr/games/mcserv
ADD start.sh /opt/start.sh
ENTRYPOINT [ "/opt/start.sh" ]