mirror of
https://github.com/luzifer-docker/terraria.git
synced 2024-11-09 21:20:02 +00:00
Terraria 1.3.5.3
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7ff42e3dc2
commit
0ad48c590b
1 changed files with 22 additions and 12 deletions
34
Dockerfile
34
Dockerfile
|
@ -1,23 +1,33 @@
|
||||||
FROM ubuntu
|
FROM debian:stretch
|
||||||
|
|
||||||
ENV TERRARIA_VERISON=1344
|
ENV TERRARIA_VERISON=1353 \
|
||||||
|
DUMB_INIT_VERSION=1.2.1
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN set -ex \
|
||||||
&& apt-get install -y bash curl unzip \
|
&& apt-get update \
|
||||||
&& adduser gameserver \
|
&& apt-get install --no-install-recommends -y \
|
||||||
&& mkdir /data && chown gameserver: /data
|
bash \
|
||||||
|
ca-certificates \
|
||||||
|
curl \
|
||||||
|
unzip \
|
||||||
|
&& useradd -m gameserver \
|
||||||
|
&& mkdir /data && chown gameserver: /data \
|
||||||
|
&& curl -sSfLo /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_amd64 \
|
||||||
|
&& chmod +x /usr/local/bin/dumb-init \
|
||||||
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
USER gameserver
|
USER gameserver
|
||||||
ENV HOME /home/gameserver
|
ENV HOME /home/gameserver
|
||||||
ENV SERVER $HOME/terraria
|
ENV SERVER $HOME/terraria
|
||||||
|
|
||||||
RUN mkdir -p ${SERVER} \
|
RUN set -ex \
|
||||||
&& curl -sSLo /tmp/terraria.zip http://terraria.org/server/terraria-server-${TERRARIA_VERISON}.zip \
|
&& mkdir -p ${SERVER} \
|
||||||
&& unzip -d ${SERVER} /tmp/terraria.zip \
|
&& 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
|
&& ln -s ${SERVER}/terraria-server-* ${SERVER}/server \
|
||||||
|
&& rm /tmp/terraria.zip
|
||||||
|
|
||||||
ADD config.ini ${SERVER}/config.ini.default
|
COPY config.ini ${SERVER}/config.ini.default
|
||||||
ADD start.sh ${SERVER}/start.sh
|
COPY start.sh ${SERVER}/start.sh
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
EXPOSE 7777/udp 7777
|
EXPOSE 7777/udp 7777
|
||||||
|
|
Loading…
Reference in a new issue