-
Notifications
You must be signed in to change notification settings - Fork 42
/
Dockerfile.smoke
69 lines (57 loc) · 1.92 KB
/
Dockerfile.smoke
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM node:10
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libgconf-2-4 \
apt-utils \
wget \
curl \
git \
fonts-ipafont-gothic \
fonts-wqy-zenhei \
fonts-thai-tlwg \
fonts-kacst \
ttf-freefont \
fonts-liberation \
libappindicator3-1 \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libcups2 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libx11-xcb1 \
libxss1 \
libxtst6 \
lsb-release \
xdg-utils \
\
&& rm -rf /var/lib/apt/lists/*
# \
# && git config --global url."https://github.com".insteadOf git://github.com \
# && git config --global url."https://${GITHUB_TOKEN}:[email protected]/".insteadOf "https://github.com/" \
# \
# && echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
# increment this to bust the cache when a new chrome comes out
ARG NOMINAL_CHROME_VERSION
ENV NOMINAL_CHROME_VERSION=${NOMINAL_CHROME_VERSION}
RUN curl -sLO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& dpkg -i google-chrome-stable_current_amd64.deb \
&& rm -rf google-chrome-stable_current_amd64.deb
ENV NO_CHROME_SANDBOX=1
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
COPY ./package.json ./yarn.lock ./tsconfig.base.json /element/
RUN cd /element && yarn
COPY ./packages/cli/package.json ./packages/cli/tsconfig.json /element/packages/cli/
COPY ./packages/element/package.json ./packages/element/tsconfig.json /element/packages/element/
RUN cd /element && yarn
COPY ./packages/cli/ /element/packages/cli/
COPY ./packages/element/ /element/packages/element/
COPY ./smoke/element-install.js /element-install.js
RUN node /element-install.js
WORKDIR /app
# ugh
COPY ./tsconfig.base.json /
COPY smoke/package.json smoke/yarn.lock smoke/tsconfig.json ./
RUN yarn
ADD smoke/ ./