Newer
Older
docker-doom / Dockerfile
FROM ubuntu:16.04

#Default environment variables
ENV DEBIAN_FRONTEND noninteractive 

#Disable Upstart (not sure if 16.04 still has Upstart but whatever)
RUN dpkg-divert --local --rename --add /sbin/initctl && \
 ln -sf /bin/true /sbin/initctl && \
 ln -sf /bin/false /usr/sbin/policy-rc.d

#Update the OS
RUN apt-get update --yes
RUN apt-get upgrade --yes

#Helper libs for adding PPAs
RUN apt-get install --yes dialog apt-utils software-properties-common wget

#Specifically add the Zandronum repo and install the application
RUN apt-add-repository 'deb http://debian.drdteam.org stable multiverse'
RUN wget -O - http://debian.drdteam.org/drdteam.gpg | apt-key add -
RUN apt-get update --yes 
RUN apt-get upgrade --yes
RUN apt-get install --yes --quiet libsdl-image1.2 zandronum 
RUN mkdir /usr/share/GeoIP/

#Create a non-privileged user
RUN useradd -ms /bin/bash zandronum
USER zandronum
WORKDIR /home/zandronum

#Build the application directory and add files
RUN mkdir /home/zandronum/logs/

VOLUME /home/zandronum/config/ \
       /home/zandronum/player/ \
       /home/zandronum/iwad/ \
       /home/zandronum/wad/ \
       /home/zandronum/bin/
COPY GeoIP.dat /usr/share/GeoIP/GeoIP.dat

CMD ["/home/zandronum/bin/start"]
ENTRYPOINT ["/home/zandronum/bin/start"]
EXPOSE 10666