First version of terraria server in 1.3.0.8

This commit is contained in:
Knut Ahlers 2015-11-22 13:25:25 +01:00
commit 55beb8b0f0
2 changed files with 39 additions and 0 deletions

21
Dockerfile Normal file
View file

@ -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"]

18
README.md Normal file
View file

@ -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
```