Initial version

This commit is contained in:
Knut Ahlers 2015-11-29 21:47:15 +01:00
commit c0734babf9
2 changed files with 21 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM java:7
ENV VERSION 1.8.8
ENV MEMORY 1024
ADD ./start.sh /start.sh
ADD https://s3.amazonaws.com/Minecraft.Download/versions/${VERSION}/minecraft_server.${VERSION}.jar /minecraft_server.jar
VOLUME /data
EXPOSE 25565
WORKDIR /data
ENTRYPOINT ["/start.sh"]
CMD ["--"]

7
start.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
echo "eula=true" > /data/eula.txt
exec /usr/bin/java \
-Xmx${MEMORY}M -Xms${MEMORY}M \
-jar /minecraft_server.jar \
nogui