minecraft-spigot/Dockerfile

28 lines
435 B
Text
Raw Normal View History

2017-03-10 08:08:06 +01:00
FROM debian:jessie
2017-03-10 01:01:10 +01:00
MAINTAINER Chris <chris@zom.bi>
EXPOSE 8123
EXPOSE 25565
EXPOSE 25565/udp
ENV \
2017-03-10 08:08:06 +01:00
DEPENDENCIES="openjdk-7-jre-headless git wget tar"
2017-03-10 01:01:10 +01:00
RUN \
2017-03-10 08:08:06 +01:00
apt-get update &&\
apt-get -y install ${DEPENDENCIES} &&\
apt-get clean
2017-03-10 01:01:10 +01:00
WORKDIR /usr/games
VOLUME ["/usr/games/mcserv"]
RUN \
2017-03-10 08:08:06 +01:00
chown -R games: . &&\
chmod 775 mcserv
2017-03-10 01:01:10 +01:00
USER games
WORKDIR /usr/games/mcserv
ADD start.sh /opt/start.sh
ENTRYPOINT [ "/opt/start.sh" ]