mirror of
https://github.com/luzifer-docker/terraria.git
synced 2024-12-20 15:11:16 +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
|
||||
|
||||
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
|
||||
|
|
5
start.sh
5
start.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue