Dockerfile 790 B

12345678910111213141516171819202122
  1. # This is a Dockerfile that builds an image with a master server for quake, quake2 etc.
  2. # The master server part is from:
  3. # http://lasange-system.sourceforge.net/
  4. # https://sourceforge.net/projects/lasange-system/files/masterserver/
  5. # Because of fear losing the source we created a mirror of the master server
  6. # source that we use here to build the Docker image.
  7. FROM ubuntu
  8. RUN apt-get update && apt-get -y install apt-utils
  9. RUN apt-get -y install build-essential linux-headers-generic
  10. RUN mkdir -p /build
  11. RUN groupadd -r buildrun && useradd --uid 23176 -r -g buildrun buildrun
  12. ADD entrypoint.sh /build
  13. ADD src /build
  14. RUN chown -R buildrun:buildrun /build
  15. USER buildrun
  16. EXPOSE 27650/udp 27000/udp 28900/udp 27900/udp 27950/udp 27951/udp 27953/udp
  17. ENTRYPOINT ["/build/entrypoint.sh"]