Add better minecraft image

This commit is contained in:
Christine Dodrill 2015-05-01 18:00:30 -07:00
parent 99bf16f4ed
commit f902a34f1e
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,14 @@
FROM flitter/init
RUN apt-get update && apt-get install openjdk-7-jre-headless -y
RUN useradd --create-home minecraft
ADD ./eula.txt /minecraft/data/eula.txt
ADD ./server.properties /minecraft/data/server.properties
ADD https://s3.amazonaws.com/Minecraft.Download/versions/1.8.4/minecraft_server.1.8.4.jar /minecraft/minecraft_server.1.8.4.jar
ADD runit/ /etc/service
RUN chmod a+r /minecraft/minecraft_server.1.8.4.jar
CMD /sbin/my_init

3
games/minecraft/eula.txt Normal file
View File

@ -0,0 +1,3 @@
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
#Fri May 01 17:46:14 PDT 2015
eula=true

View File

@ -0,0 +1,7 @@
#!/bin/sh
chmod -R a+rw /minecraft
cd /minecraft/data
setuser minecraft java -jar /minecraft/minecraft_server.1.8.4.jar

View File

@ -0,0 +1,34 @@
#Minecraft server properties
#Fri May 01 17:46:35 PDT 2015
generator-settings=
use-native-transport=true
op-permission-level=4
resource-pack-hash=
level-name=world
allow-flight=false
announce-player-achievements=true
server-port=25565
max-world-size=29999984
level-type=DEFAULT
level-seed=
force-gamemode=false
server-ip=
network-compression-threshold=256
max-build-height=256
spawn-npcs=true
white-list=false
spawn-animals=true
hardcore=false
snooper-enabled=true
online-mode=true
resource-pack=
pvp=true
difficulty=1
enable-command-block=true
gamemode=0
player-idle-timeout=0
max-players=20
spawn-monsters=true
view-distance=10
generate-structures=true
motd=A Minecraft Server