Skip to content

Commit

Permalink
Refactor: Switch to Debian from Alpine-Glibc
Browse files Browse the repository at this point in the history
The Alpine-Glibc causes the server to segfault. Luckily, the versions of software shipped in the older container did not have this problem.
  • Loading branch information
PassiveLemon committed Aug 17, 2024
1 parent ee349ab commit eae4a97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ jobs:
--tag ghcr.io/passivelemon/terraria-docker:${{ steps.get_terraria_release.outputs.latest_terraria }} \
--tag ghcr.io/passivelemon/terraria-docker:latest \
.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM docker.io/frolvlad/alpine-glibc:latest
FROM docker.io/debian:latest
ARG TARGETARCH
# These come from the workflow --build-args
ARG TERRARIAVERSION
ARG TERRARIAVERSIONFIX

RUN apk add --no-cache bash grep curl unzip icu-dev tmux jq netcat-openbsd
RUN apt-get update -y &&\
apt-get install -y bash grep curl unzip libicu-dev tmux jq netcat-openbsd

# Mono
RUN if [ "$TARGETARCH" = "arm64" ]; then apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing; fi
Expand Down Expand Up @@ -51,3 +52,4 @@ ENV WORLDNAME="World"
ENTRYPOINT ["/opt/terraria/entrypoint.sh"]

HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 CMD nc -vz 127.0.0.1 7777 || exit 1

0 comments on commit eae4a97

Please sign in to comment.