mirror of
https://github.com/luzifer-docker/terraria.git
synced 2024-12-20 15:11:16 +00:00
First version of terraria server in 1.3.0.8
This commit is contained in:
commit
55beb8b0f0
2 changed files with 39 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
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"]
|
18
README.md
Normal file
18
README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# luzifer-docker/terraria
|
||||
|
||||
This image contains a [Terraria](http://terraria.org/) 1.3.0.8 server with automatic world generatation and the possibility to store / inject a world using a Docker mount
|
||||
|
||||
## How to run
|
||||
|
||||
You can simply run the image with the default settings:
|
||||
|
||||
```
|
||||
docker run -d -p 7777:7777 quay.io/luzifer/terraria
|
||||
```
|
||||
|
||||
If you want the world to persist you can mount a volume into the container:
|
||||
|
||||
```
|
||||
docker run -d -p 7777:7777 -v ~/terraria:/data quay.io/luzifer/terraria
|
||||
```
|
||||
|
Loading…
Reference in a new issue