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.
43 lines
1.1 KiB
43 lines
1.1 KiB
FROM debian:stable-slim
|
|
|
|
RUN apt-get update -y && apt-get install -y wget bzip2 libsdl1.2debian unzip
|
|
|
|
WORKDIR /src
|
|
|
|
# Download and extract soruce
|
|
RUN wget https://zandronum.com/downloads/zandronum3.0-linux-x86_64.tar.bz2
|
|
RUN tar xjf zandronum*.tar.bz2
|
|
|
|
# Extract libs used by server
|
|
RUN mkdir -p /export/libs
|
|
COPY extract_server.sh .
|
|
RUN bash ./extract_server.sh zandronum-server /export/libs
|
|
RUN cp libcrypto* /export/libs
|
|
|
|
# Copy server and required files to /export
|
|
RUN cp zandronum-server zandronum.pk3 /export/
|
|
|
|
# Download FreeDM WAD
|
|
RUN wget https://github.com/freedoom/freedoom/releases/download/v0.12.1/freedm-0.12.1.zip
|
|
RUN unzip freed*.zip
|
|
RUN cd freedm* && cp freedm.wad /export
|
|
|
|
# Libraries that aren't in busybox or alpines musl are needed :(
|
|
FROM debian:stable-slim
|
|
|
|
RUN apt-get update -y && apt-get install -y wget
|
|
RUN apt-get clean && apt-get autoclean
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
EXPOSE 10666/udp
|
|
|
|
RUN mkdir -p /srv
|
|
COPY --from=0 /export /srv
|
|
COPY server.cfg /srv
|
|
COPY entrypoint.sh /srv
|
|
|
|
RUN useradd -m zandronum
|
|
RUN chown -R zandronum /srv
|
|
USER zandronum
|
|
|
|
ENTRYPOINT /srv/entrypoint.sh
|
|
|