2 Commits

Author SHA1 Message Date
Michael (Parker) Parker
984ebc2edb forgot to update the workflow and readme 2025-05-19 16:17:33 -04:00
Michael (Parker) Parker
0178f44ac9 Add image for zandronum
zandronum needs a set of packages that are outdated.
2025-05-19 16:14:41 -04:00
4 changed files with 49 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ jobs:
- source - source
- valheim - valheim
- thebattleforwesnoth - thebattleforwesnoth
- zandronum
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@@ -146,6 +146,8 @@ is tagged correctly.
* `ghcr.io/parkervcp/games:thebattleforwesnoth` * `ghcr.io/parkervcp/games:thebattleforwesnoth`
* [`valheim`](/games/valheim) * [`valheim`](/games/valheim)
* `ghcr.io/parkervcp/games:valheim` * `ghcr.io/parkervcp/games:valheim`
* [`zandronum`](/games/zandronum)
* `ghcr.io/parkervcp/games:zandronum`
### [Golang](/go) ### [Golang](/go)

View File

@@ -0,0 +1,33 @@
FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim
RUN apt update && \
apt upgrade -y && \
apt install -y \
tini \
wget \
libsdl1.2debian \
libsdl2-2.0-0
RUN wget https://snapshot.debian.org/archive/debian/20190501T215844Z/pool/main/g/glibc/multiarch-support_2.28-10_amd64.deb && \
wget https://snapshot.debian.org/archive/debian/20141009T042436Z/pool/main/libj/libjpeg8/libjpeg8_8d1-2_amd64.deb && \
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \
apt install -y ./libjpeg8_8d1-2_amd64.deb ./multiarch-support_2.28-10_amd64.deb ./libssl1.1_1.1.0g-2ubuntu4_amd64.deb
## add container user
RUN useradd -m -d /home/container -s /bin/bash container
# Set up user and working directory
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
# Set the stop signal
STOPSIGNAL SIGINT
# Copy and set up the entrypoint script
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Define entrypoint and command
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]

View File

@@ -0,0 +1,13 @@
#!/bin/bash
cd /home/container
# Make internal Docker IP address available to processes.
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
# Replace Startup Variables
MODIFIED_STARTUP=$(echo -e $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'))
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}