mirror of
https://github.com/luzifer-docker/terraria.git
synced 2024-11-08 12:40:02 +00:00
22 lines
558 B
Text
22 lines
558 B
Text
|
FROM ubuntu
|
||
|
|
||
|
ENV TERRARIA_VERISON=1308
|
||
|
|
||
|
RUN apt-get update \
|
||
|
&& apt-get install -y wget bash \
|
||
|
&& adduser gameserver
|
||
|
|
||
|
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
|
||
|
|
||
|
VOLUME /data
|
||
|
EXPOSE 7777/udp 7777
|
||
|
|
||
|
ENTRYPOINT ["/home/gameserver/terraria/server/TerrariaServer.bin.x86_64"]
|
||
|
CMD ["-config", "/data/config.ini", "-steam", "-secure"]
|