-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathDockerfile
31 lines (24 loc) · 1012 Bytes
/
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
FROM node:14
ENV BABEL_DISABLE_CACHE=1
RUN mkdir -p /chi
WORKDIR /chi
# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
# TESTS
RUN apt-get update \
&& apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
RUN wget https://www.slimjet.com/chrome/download-chrome.php?file=files%2F71.0.3578.80%2Fgoogle-chrome-stable_current_amd64.deb -O google-chrome-stable_current_amd64.deb \
&& apt-get update \
&& apt-get install -y ./google-chrome-stable_current_amd64.deb expect libgconf-2-4 xvfb busybox \
&& apt-get clean \
&& rm ./google-chrome-stable_current_amd64.deb
RUN mkdir /tmp/{chi,documentation}
COPY package_chi.json /tmp/chi/package.json
COPY package_documentation.json /tmp/documentation/package.json
RUN cd /tmp/chi && npm install \
&& npm cache clean --force
# START
COPY entrypoint.sh /
ENTRYPOINT ["/tini", "--", "/entrypoint.sh"]