Skip to content

Commit

Permalink
Merge pull request #147 from SirMonkeyBoy/master
Browse files Browse the repository at this point in the history
Updated Mobile to version 1.4.4.5
  • Loading branch information
ryansheehan authored Nov 16, 2022
2 parents 551e357 + 5821b31 commit 54a0f3b
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions mobile/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
FROM alpine:3.15.0 AS base
FROM alpine:3.16.3 AS base

RUN apk add --update-cache \
unzip

ENV DL_LINK=https://terraria.org/api/download/mobile-dedicated-server/MobileTerrariaServer.zip
ENV DL_VERSION=1_4_0_5
ENV DL_FILE=MobileTerrariaServer.zip
ENV DL_LINK=https://terraria.org/api/download/mobile-dedicated-server/terraria-server-1445.zip
ENV DL_VERSION=1445
ENV DL_FILE=terraria-server-1445.zip

ADD $DL_LINK /$DL_FILE

RUN unzip /$DL_FILE -d /terraria-zip && \
unzip /terraria-zip/Linux_MobileServer_${DL_VERSION}.zip -d /terraria && \
mkdir /terraria-server && \
mv /terraria/ServerLinux/* /terraria-server && \
rm /terraria-server/System* && \
rm /terraria-server/Mono* && \
rm /terraria-server/monoconfig && \
rm /terraria-server/mscorlib.dll && \
chmod +x /terraria-server/TerrariaServer && \
chmod +x /terraria-server/TerrariaServer.bin.x86 && \
chmod +x /terraria-server/TerrariaServer.bin.x86_64

FROM mono:6.12.0.122-slim
RUN unzip $DL_FILE && \
mkdir ./terraria-server && \
mv ./$DL_VERSION/Linux/* ./terraria-server && \
rm ./terraria-server/System* && \
rm ./terraria-server/Mono* && \
rm ./terraria-server/monoconfig && \
rm ./terraria-server/mscorlib.dll && \
rm -r ./$DL_VERSION && \
rm -r ./$DL_FILE && \
chmod +x ./terraria-server/TerrariaServer && \
chmod +x ./terraria-server/TerrariaServer.bin.x86_64

FROM mono:6.12.0.182
LABEL maintainer="Ryan Sheehan <[email protected]>"

EXPOSE 7777
Expand Down

0 comments on commit 54a0f3b

Please sign in to comment.