Updated Dockerfile
This commit is contained in:
parent
70f48b6c99
commit
a0d6f363bc
43
Dockerfile
43
Dockerfile
@ -1,6 +1,9 @@
|
|||||||
# Cause fuck Ubuntu
|
# Cause fuck Ubuntu
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
|
# Who to contact
|
||||||
|
LABEL maintainer="cfultz <caleb@fultz.dev>"
|
||||||
|
|
||||||
# Default environment variables
|
# Default environment variables
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
ENV IWAD doom1.wad
|
ENV IWAD doom1.wad
|
||||||
@ -24,33 +27,33 @@ RUN apt-get upgrade --yes
|
|||||||
RUN apt-get install --yes --quiet libsdl-image1.2 zandronum
|
RUN apt-get install --yes --quiet libsdl-image1.2 zandronum
|
||||||
|
|
||||||
# Create a non-privileged user
|
# Create a non-privileged user
|
||||||
RUN useradd -ms /bin/bash server
|
RUN useradd -ms /bin/bash zandronum
|
||||||
|
|
||||||
# Build the app directory and add files
|
# Build the app directory and add files
|
||||||
RUN mkdir /home/server/config && \
|
RUN mkdir /home/zandronum/config && \
|
||||||
mkdir /home/server/wad/ && \
|
mkdir /home/zandronum/wad/ && \
|
||||||
mkdir /home/server/iwad/ && \
|
mkdir /home/zandronum/iwad/ && \
|
||||||
mkdir /home/server/bin/ && \
|
mkdir /home/zandronum/bin/ && \
|
||||||
mkdir /home/server/player/ && \
|
mkdir /home/zandronum/player/ && \
|
||||||
mkdir /home/server/logs/
|
mkdir /home/zandronum/logs/
|
||||||
|
|
||||||
COPY /config/ /home/server/config/
|
COPY /config/ /home/zandronum/config/
|
||||||
COPY /bin/ /home/server/bin/
|
COPY /bin/ /home/zandronum/bin/
|
||||||
COPY /player/ /home/server/player/
|
COPY /player/ /home/zandronum/player/
|
||||||
COPY /iwad/ /home/server/iwad/
|
COPY /iwad/ /home/zandronum/iwad/
|
||||||
COPY /wad/ /home/server/wad/
|
COPY /wad/ /home/zandronum/wad/
|
||||||
|
|
||||||
# RUN wget -O /home/server/config/masterbanlist.txt https://zandronum.com/banlist && \
|
# RUN wget -O /home/zandronum/config/masterbanlist.txt https://zandronum.com/banlist && \
|
||||||
# cat masterbanlist.txt >> /home/server/player/banlist.txt
|
# cat masterbanlist.txt >> /home/zandronum/player/banlist.txt
|
||||||
# Zandronum has a config 'sv_enforcemasterlist'
|
# Zandronum has a config 'sv_enforcemasterlist'
|
||||||
# so this isnt needed unless you want a local static copy
|
# so this isnt needed unless you want a local static copy
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
RUN chown -R server:server /home/server
|
RUN chown -R zandronum:zandronum /home/zandronum
|
||||||
USER server
|
USER zandronum
|
||||||
WORKDIR /home/server
|
WORKDIR /home/zandronum
|
||||||
RUN chmod +x /home/server/bin/start.bash
|
RUN chmod +x /home/zandronum/bin/start.bash
|
||||||
|
|
||||||
CMD ["/home/server/bin/start.bash"]
|
CMD ["/home/zandronum/bin/start.bash"]
|
||||||
ENTRYPOINT [ "/home/server/bin/start.bash" ]
|
ENTRYPOINT [ "/home/zandronum/bin/start.bash" ]
|
||||||
EXPOSE 10666
|
EXPOSE 10666
|
||||||
|
Loading…
Reference in New Issue
Block a user