commit c0734babf9f25cf69623b1eb4f16f5601812e0f7 Author: Knut Ahlers Date: Sun Nov 29 21:47:15 2015 +0100 Initial version diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f4aac2d --- /dev/null +++ b/Dockerfile @@ -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 ["--"] diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..4e9bfa8 --- /dev/null +++ b/start.sh @@ -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