terraria/Dockerfile
Knut Ahlers 7ff42e3dc2
Update Terraria v1.3.4.4
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-01-06 21:21:57 +01:00

26 lines
639 B
Docker

FROM ubuntu
ENV TERRARIA_VERISON=1344
RUN apt-get update \
&& 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} \
&& 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
VOLUME /data
EXPOSE 7777/udp 7777
ENTRYPOINT ["/home/gameserver/terraria/start.sh"]
CMD ["--"]