Files
quakejs-docker/Dockerfile
T

28 lines
882 B
Docker

FROM ubuntu:latest
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install sudo curl git nodejs npm jq apache2 wget apt-utils -y
RUN curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
RUN git clone --recurse-submodules https://github.com/begleysm/quakejs.git
WORKDIR /quakejs
RUN npm install
COPY server.cfg /quakejs/base/baseq3/server.cfg
COPY server.cfg /quakejs/base/cpma/server.cfg
# The two following lines are not necessary because we copy assets from include. Leaving them here for continuity.
# WORKDIR /var/www/html
# RUN bash /var/www/html/get_assets.sh
COPY ./include/ioq3ded/ioq3ded.fixed.js /quakejs/build/ioq3ded.js
COPY ./include/assets /var/www/html
RUN rm /var/www/html/index.html && cp /quakejs/html/* /var/www/html/
RUN echo "127.0.0.1 content.quakejs.com" >> /etc/hosts
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]