mirror of
https://github.com/luzifer-docker/minecraft.git
synced 2024-11-09 09:50:08 +00:00
Initial version
This commit is contained in:
commit
c0734babf9
2 changed files with 21 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
7
start.sh
Executable 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
|
Loading…
Reference in a new issue