forked from treyyoder/quakejs-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (30 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=US/Eastern
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install sudo curl git nodejs npm jq apache2 wget apt-utils -y
#Updated to 14
RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
RUN git clone https://github.com/begleysm/quakejs.git
WORKDIR /quakejs
RUN npm install
RUN ls
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
RUN rm /var/www/html/index.html && cp /quakejs/html/* /var/www/html/
COPY ./include/assets/ /var/www/html/assets
RUN ls /var/www/html
#This has stopped working.
#It can be done during docker run with --add-host flag
#However additional hosts are not compatible on fargate, hence forcing this in entrypoint.sh
#RUN echo "127.0.0.1 content.quakejs.com" >> /etc/hosts
WORKDIR /
ADD entrypoint.sh /entrypoint.sh
# Was having issues with Linux and Windows compatibility with chmod -x, but this seems to work in both
RUN chmod 777 ./entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]