mirror of
https://github.com/luzifer-docker/terraria.git
synced 2024-12-20 23:21:17 +00:00
Updated to Terraria 1.3.1.1
This commit is contained in:
parent
bcde5916fa
commit
0db3c3fddc
2 changed files with 11 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
@ -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
|
||||||
|
|
5
start.sh
5
start.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue