forked from ldericher/tmodloader-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (36 loc) · 1.16 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# METADATA
FROM debian:testing-slim
LABEL maintainer="joe.stratton@asu.edu"
RUN \
# system update \
apt-get -y update &&\
apt-get -y install wget unzip &&\
apt-get -y clean &&\
\
# prepare directory \
mkdir /terraria-server &&\
cd /terraria-server &&\
\
# get vanilla server \
wget http://terraria.org/server/terraria-server-1353.zip &&\
unzip terraria-server-*.zip &&\
rm terraria-server-*.zip &&\
cp --verbose -a 1353/. . &&\
rm -rf 1353 &&\
\
# add in tModLoader \
cd Linux &&\
wget https://github.com/tModLoader/tModLoader/releases/download/v0.11.1/tModLoader.Linux.v0.11.1.zip &&\
unzip tModLoader.Linux.v*.zip &&\
rm tModLoader.Linux.v*.zip &&\
chmod u+x tModLoaderServer* &&\
chmod u+x Terraria &&\
\
# access data directory \
ln -s ${HOME}/.local/share/Terraria/ /terraria &&\
# remove Leftovers \
cd .. &&\
rm -rf Windows Mac
RUN sed -i '0,/all/s//all\n\n\nchmod +x $KICKSTART\n\n/' /terraria-server/Linux/tModLoaderServer
# ports used
EXPOSE 7777