Updated to Terraria 1.3.1.1

This commit is contained in:
Knut Ahlers 2016-06-23 11:02:43 +02:00
parent bcde5916fa
commit 0db3c3fddc
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 11 additions and 6 deletions

View file

@ -1,18 +1,20 @@
FROM ubuntu
ENV TERRARIA_VERISON=1308
ENV TERRARIA_VERISON=1311
RUN apt-get update \
&& apt-get install -y wget bash \
&& adduser gameserver
&& apt-get install -y bash curl unzip \
&& adduser gameserver \
&& mkdir /data && chown gameserver: /data
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
&& curl -sSLo /tmp/terraria.zip http://terraria.org/server/terraria-server-${TERRARIA_VERISON}.zip \
&& unzip -d ${SERVER} /tmp/terraria.zip \
&& ln -s ${SERVER}/terraria-server-* ${SERVER}/server
ADD config.ini ${SERVER}/config.ini.default
ADD start.sh ${SERVER}/start.sh

View file

@ -4,5 +4,8 @@ if ! [ -e /data/config.ini ]; then
cp ${SERVER}/config.ini.default /data/config.ini
fi
exec tail -f /dev/null | ${SERVER}/server/TerrariaServer.bin.x86_64 \
# FIX: The ZIP archive does not have correct permissions
chmod +x /home/gameserver/terraria/Dedicated\ Server/Linux/TerrariaServer*
exec tail -f /dev/null | ${SERVER}/Dedicated\ Server/Linux/TerrariaServer.bin.x86_64 \
-config /data/config.ini