Crispy Doom server behind doom.jerryaldrichiii.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
956 B

# Switch to alpine to serve content built above
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get install -y cmake wget g++ unzip
RUN mkdir /src
WORKDIR /src
RUN wget https://github.com/odamex/odamex/archive/0.8.1.tar.gz
RUN tar xvzf *.tar.gz
COPY build_odamex.sh /build_odamex.sh
RUN /build_odamex.sh
RUN wget https://github.com/freedoom/freedoom/releases/download/v0.12.1/freedm-0.12.1.zip
RUN unzip freedm*.zip
RUN cp freedm*/freedm.wad /export
# Using debian slim as opposed to alpine because
# odamex uses libraries only available in glibc
FROM debian:stable-slim
COPY --from=0 /export/odasrv /srv/odasrv
COPY --from=0 /export/odamex.wad /srv/odamex.wad
COPY --from=0 /export/freedm.wad /srv/freedm.wad
COPY odasrv.cfg /srv/odasrv.cfg
# RUN useradd --no-create-home --shell /bin/false odamex
RUN useradd -m --shell /bin/false odamex
RUN chown -R odamex:odamex /srv/
USER odamex
CMD /srv/odasrv -config /srv/odasrv.cfg
EXPOSE 10666/udp