From daaf933455eafe4473f156823df35310ad9e8cad Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Sun, 12 Nov 2023 16:30:09 -0500 Subject: [PATCH] Full code push of Dockerfile --- Dockerfile | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2bc6ff3..6ab6c6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1,43 @@ -FROM debian:bookworm-slim \ No newline at end of file +# Cause fuck Ubuntu +FROM debian:bookworm-slim + +# Update the OS +RUN apt-get update --yes +RUN apt-get upgrade --yes + +# Helper libraries for adding repo +RUN apt-get install -yes dialog apt-utils software-properties-common wget + +# Adding Zandronum repo and installing the application + +RUN wget -O - http://debian.drdteam.org/drdteam.gpg | apt-key add - +RUN apt-add-repository 'deb https://debian.drdteam.org stable multiverse' +RUN apt-get update --yes +RUN apt-get upgrade --yes +RUN apt-get install --yes --quiet libsdl-image1.2 zandronum + +# Create a non-privileged user +RUN useradd -ms /bin/bash zandronum + +# Build the app directory and add files +RUN mkdir /home/zandronum/config && \ + mkdir /home/zandronum/wad/ && \ + mkdir /home/zandronum/iwad/ && \ + mkdir /home/zandronum/bin/ && \ + mkdir /home/zandronum/logs/ + +COPY /config/ /home/zandronum/config/ +COPY /bin/ /home/zandronum/bin/ +COPY /player/ /home/zandronum/player/ +COPY /iwad/ /home/zandronum/iwad/ +COPY /wad/ /home/zandronum/wad/ + +USER root +RUN chown -R zandronum:zandronum /home/zandronum +USER zandronum +WORKDIR /home/zandronum +RUN chmod +x /home/zandronum/bin/start.bash + +CMD ["/home/zandronum/bin/start.bash"] +ENTRYPOINT [ "/home/zandronum/bin/start.bash" ] +EXPOSE 10666