gamesvr-ut99/linux.Dockerfile

64 lines
2.0 KiB
Docker
Raw Permalink Normal View History

2021-08-28 21:04:40 -05:00
# escape=`
ARG CONTAINER_REGISTRY="docker.io"
2025-02-15 17:14:44 -06:00
FROM $CONTAINER_REGISTRY/lacledeslan/steamcmd:linux AS ut99-builder
2021-08-28 21:04:40 -05:00
ARG contentServer=content.lacledeslan.net
RUN echo "Downloading UT99 Dedicated Server Assets" &&`
mkdir --parents /tmp/ &&`
2025-02-15 17:14:44 -06:00
curl -sSL "http://${contentServer}/fastDownloads/_installers/ut99/ut99-server-469e-linux.tar.xz" -o /tmp/ut99-server.tar.xz &&`
2021-08-28 21:04:40 -05:00
echo "Validating download against known hash" &&`
2025-02-15 17:14:44 -06:00
echo "2e407565229b4a2ac7c6d18d828dec75711a39ae4da229307fca1a124772f484 /tmp/ut99-server.tar.xz" | sha256sum -c - &&`
2025-02-15 13:13:00 -06:00
echo "Extracting UT99 Dedicated Server Assets" &&`
2025-02-15 17:14:44 -06:00
tar -xJvf /tmp/ut99-server.tar.xz -C /output/ &&`
rm -f /tmp/*.xz
2021-08-28 21:04:40 -05:00
#=======================================================================
2025-02-15 13:03:43 -06:00
FROM debian:bookworm-slim
2021-08-28 21:04:40 -05:00
HEALTHCHECK NONE
ARG BUILDNODE=unspecified
ARG SOURCE_COMMIT=unspecified
2025-02-15 17:14:44 -06:00
RUN dpkg --add-architecture i386 &&`
apt-get update && apt-get install -y `
ca-certificates lib32z1 libsdl1.2debian:i386 locales locales-all tmux &&`
2021-08-28 21:04:40 -05:00
apt-get clean &&`
echo "LC_ALL=en_US.UTF-8" >> /etc/environment &&`
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*;
ENV LANG=en_US.UTF-8 `
LANGUAGE=en_US.UTF-8 `
LC_ALL=en_US.UTF-8 `
UT_DATA_PATH=/app/System
LABEL com.lacledeslan.build-node=$BUILDNODE `
org.opencontainers.image.source=https://github.com/lacledeslan/gamesvr-ut99 `
org.opencontainers.image.title="Unreal Tournament 99 Dedicated Server" `
org.opencontainers.image.url=https://github.com/LacledesLAN/README.1ST `
org.opencontainers.image.vendor="Laclede's LAN" `
org.opencontainers.image.version=$SOURCE_COMMIT
2025-02-15 13:03:43 -06:00
# Set up Environment
2021-08-28 21:04:40 -05:00
RUN useradd --home /app --gid root --system UT99 &&`
mkdir -p /app &&`
chown UT99:root -R /app;
COPY --chown=UT99:root --from=ut99-builder /output /app
2025-02-15 17:14:44 -06:00
RUN chmod +x /app/ucc /app/System/ucc-bin
2021-08-28 21:04:40 -05:00
COPY --chown=UT99:root /dist.linux/ /app/
RUN chmod +x /app/ll-tests/*.sh
USER UT99
WORKDIR /app
CMD ["/bin/bash"]
ONBUILD USER root