2019-07-07 15:23:30 +02:00
|
|
|
FROM openjdk:11-jre
|
2017-03-10 01:01:10 +01:00
|
|
|
MAINTAINER Chris <chris@zom.bi>
|
|
|
|
EXPOSE 8123
|
|
|
|
EXPOSE 25565
|
|
|
|
EXPOSE 25565/udp
|
|
|
|
|
|
|
|
ENV \
|
2019-07-07 15:23:30 +02:00
|
|
|
DEPENDENCIES="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 \
|
2019-07-07 15:23:30 +02:00
|
|
|
chown games: /usr/games /usr/games/mcserv &&\
|
2017-03-10 08:08:06 +01:00
|
|
|
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" ]
|
|
|
|
|