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 FROM ubuntu
ENV TERRARIA_VERISON=1308 ENV TERRARIA_VERISON=1311
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y wget bash \ && apt-get install -y bash curl unzip \
&& adduser gameserver && adduser gameserver \
&& mkdir /data && chown gameserver: /data
USER gameserver USER gameserver
ENV HOME /home/gameserver ENV HOME /home/gameserver
ENV SERVER $HOME/terraria ENV SERVER $HOME/terraria
RUN mkdir -p ${SERVER} \ RUN mkdir -p ${SERVER} \
&& wget -O - http://terraria.org/server/terraria-server-linux-${TERRARIA_VERISON}.tar.gz | tar -C ${SERVER} -xvz \ && curl -sSLo /tmp/terraria.zip http://terraria.org/server/terraria-server-${TERRARIA_VERISON}.zip \
&& ln -s ${SERVER}/terraria-server-linux-* ${SERVER}/server && unzip -d ${SERVER} /tmp/terraria.zip \
&& ln -s ${SERVER}/terraria-server-* ${SERVER}/server
ADD config.ini ${SERVER}/config.ini.default ADD config.ini ${SERVER}/config.ini.default
ADD start.sh ${SERVER}/start.sh 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 cp ${SERVER}/config.ini.default /data/config.ini
fi 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 -config /data/config.ini