Skip to content

Commit

Permalink
fixed tshock file download names, and updated versions for GH Actions…
Browse files Browse the repository at this point in the history
… to build docker image
  • Loading branch information
ryansheehan committed Dec 24, 2024
1 parent 8abc211 commit 2f298a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tshock/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.17.3 AS base
FROM alpine:3.21.0 AS base

RUN apk add --update-cache \
curl unzip
Expand All @@ -9,11 +9,13 @@ COPY bootstrap.sh /tshock/bootstrap.sh
ENV TSHOCKVERSION=v5.2.1

# Download and unpack TShock
# https://github.com/Pryaxis/TShock/releases/download/v5.2.1/TShock-5.2.1-for-Terraria-1.4.4.9-linux-amd64-Release.zip
# https://github.com/Pryaxis/TShock/releases/download/v5.2.1/TShock-5.2.1-for-Terraria-1.4.4.9-linux-arm64-Release.zip
RUN set -eux; \
arch="$(apk --print-arch)"; \
case "$arch" in \
'x86_64') \
export TSHOCKZIP='TShock-5.2.1-for-Terraria-1.4.4.9-linux-x64-Release.zip'; \
export TSHOCKZIP='TShock-5.2.1-for-Terraria-1.4.4.9-linux-amd64-Release.zip'; \
;; \
'aarch64') \
export TSHOCKZIP='TShock-5.2.1-for-Terraria-1.4.4.9-linux-arm64-Release.zip'; \
Expand Down

0 comments on commit 2f298a2

Please sign in to comment.