doom-docker-zandronum-compiler/Dockerfile

37 lines
1.1 KiB
Docker
Raw Normal View History

2023-11-14 22:00:45 +01:00
# Cause fuck Ubuntu
2023-11-14 23:43:32 +01:00
FROM debian:bookworm-slim
2023-11-14 22:00:45 +01:00
# Who to contact
LABEL maintainer="cfultz <caleb@fultz.dev>"
# Environment
2023-11-14 23:58:09 +01:00
ENV DEBIAN_FRONTEND noninteractive
ENV build linux
2023-11-14 22:00:45 +01:00
# Update the OS
RUN apt update && apt upgrade --yes
# Helper libraries to compile
2023-11-14 23:58:09 +01:00
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 cd /root/ && mkdir -pv /root/zandronum_build && mkdir -pv /root/complete
RUN cd /root/zandronum_build && \
2023-11-15 16:27:17 +01:00
hg clone --insecure https://hg.osdn.net/view/zandronum/zandronum-stable zandronum && \
2023-11-14 23:58:09 +01:00
mkdir -pv zandronum/buildclient zandronum/buildserver
2023-11-15 16:27:17 +01:00
RUN cd /root/zandronum_build \
wget -nc https://zandronum.com/essentials/fmod/fmodapi44464linux.tar.gz \
2023-11-14 23:58:09 +01:00
tar -xvzf fmodapi44464linux.tar.gz -C zandronum
2023-11-14 22:00:45 +01:00
2023-11-15 16:27:17 +01:00
RUN cd /root/zandronum_build/zandronum/buildserver && \
2023-11-14 23:58:09 +01:00
cmake .. -DCMAKE_BUILD_TYPE=Release -DSERVERONLY=ON -DRELEASE_WITH_DEBUG_FILE=OFF && \
2023-11-15 16:27:17 +01:00
make -j$(nproc)
2023-11-14 23:43:32 +01:00
2023-11-15 16:27:17 +01:00
RUN cp /root/zandronum_build/zandronum/buildserver/zandronum-server /root/complete/
2023-11-14 23:43:32 +01:00