commit 55beb8b0f00ec1cc838b455e715f30dc0a9506e0 Author: Knut Ahlers Date: Sun Nov 22 13:25:25 2015 +0100 First version of terraria server in 1.3.0.8 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7bed2bd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu + +ENV TERRARIA_VERISON=1308 + +RUN apt-get update \ + && apt-get install -y wget bash \ + && adduser gameserver + +USER gameserver +ENV HOME /home/gameserver +ENV SERVER $HOME/terraria + +RUN mkdir -p ${SERVER} \ + && wget -O - http://terraria.org/server/terraria-server-linux-${TERRARIA_VERISON}.tar.gz | tar -C ${SERVER} -xvz \ + && ln -s ${SERVER}/terraria-server-linux-* ${SERVER}/server + +VOLUME /data +EXPOSE 7777/udp 7777 + +ENTRYPOINT ["/home/gameserver/terraria/server/TerrariaServer.bin.x86_64"] +CMD ["-config", "/data/config.ini", "-steam", "-secure"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..3090709 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# luzifer-docker/terraria + +This image contains a [Terraria](http://terraria.org/) 1.3.0.8 server with automatic world generatation and the possibility to store / inject a world using a Docker mount + +## How to run + +You can simply run the image with the default settings: + +``` +docker run -d -p 7777:7777 quay.io/luzifer/terraria +``` + +If you want the world to persist you can mount a volume into the container: + +``` +docker run -d -p 7777:7777 -v ~/terraria:/data quay.io/luzifer/terraria +``` +