From 10cf7532c55ee569695b41672df87f1ec2b9f122 Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Tue, 14 Nov 2023 17:58:09 -0500 Subject: [PATCH] Updated Dockerfile --- Dockerfile | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index fbe58c0..cb849fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,18 +5,33 @@ FROM debian:bookworm-slim LABEL maintainer="cfultz " # Environment - +ENV DEBIAN_FRONTEND noninteractive +ENV build linux # Update the OS RUN apt update && apt upgrade --yes # Helper libraries to compile -RUN apt install --yes dialog apt-utils wget g++ make cmake +RUN apt install --yes dialog apt-utils wget g++ make cmake \ +libsdl1.2-compat-dev mercurial zlib1g-dev \ +libbz2-dev libjpeg-dev libfluidsynth-dev libgtk2.0-dev timidity nasm \ +libssl-dev tar libglew-dev libgl1-mesa-dev -RUN apt install --yes libsdl1.2-compat-dev mercurial zlib1g-dev +RUN cd /root/ && mkdir -pv /root/zandronum_build && mkdir -pv /root/complete -RUN apt install --yes libbz2-dev libjpeg-dev libfluidsynth-dev libgtk2.0-dev timidity nasm +RUN cd /root/zandronum_build && \ +hg clone https://hg.osdn.net/view/zandronum/zandronum-stable zandronum && \ +mkdir -pv zandronum/buildclient zandronum/buildserver -RUN apt install --yes libssl-dev tar libglew-dev +RUN cd /root/zandronum_build && +wget -nc https://zandronum.com/essentials/fmod/fmodapi44464linux.tar.gz && +tar -xvzf fmodapi44464linux.tar.gz -C zandronum + +RUN c="$(lscpu -p | grep -v '#' | sort -u -t , -k 2,4 | wc -l)" ; [ "$c" -eq 0 ] && c=1 \ +cd ~/zandronum_build/zandronum/buildserver && \ +cmake .. -DCMAKE_BUILD_TYPE=Release -DSERVERONLY=ON -DRELEASE_WITH_DEBUG_FILE=OFF && \ +make -j$c + + +RUN cp zandronum-server /root/complete/ -RUN apt install --yes libgl1-mesa-dev