-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (28 loc) · 1.1 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
# https://store.docker.com/images/node
FROM node:12-stretch
# https://tracker.debian.org/pkg/chromium-browser
# https://tracker.debian.org/pkg/firefox-esr
ARG CHROMIUM=70.0.3538.110-1~deb9u1
ARG FIREFOX=60.6.3esr-1~deb9u1
# lock yarn version (note: node:stretch comes with yarn, we install our own version)
ENV YARN_VERSION 1.19.1
RUN curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
&& ln -snf /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
&& ln -snf /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz
RUN \
apt-get update && apt-get install -y --no-install-recommends \
# browsers
chromium=${CHROMIUM} firefox-esr=${FIREFOX} \
# cci deps
git tar gzip ca-certificates \
# deployment
bash curl make \
&& rm -rf /var/lib/apt/lists/* /tmp/*
ENV \
# disable puppeteer download as it will not work with this image
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
# browser bin paths
CHROME_BIN=/usr/bin/chromium \
FIREFOX_BIN=/usr/bin/firefox