File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM bitnami/minideb
1
+ FROM femtopixel/google-chrome-headless
2
2
3
3
MAINTAINER Jay MOULIN <jaymoulin@gmail.com> <http://twitter.com/moulinjay>
4
4
5
+ USER root
6
+
5
7
# Install deps + add Chrome Stable + purge all the things
6
8
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg --no-install-recommends && \
7
9
curl -sSL https://deb.nodesource.com/setup_9.x | bash - && \
8
- curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \
9
- echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
10
- apt-get update && apt-get install -y google-chrome-stable nodejs --no-install-recommends && \
10
+ apt-get update && apt-get install -y nodejs --no-install-recommends && \
11
11
npm --global install yarn && \
12
12
apt-get purge --auto-remove -y curl gnupg && \
13
13
rm -rf /var/lib/apt/lists/* && \
14
14
yarn global add lighthouse && \
15
- groupadd -r chrome && useradd -r -g chrome -G audio,video chrome && \
16
15
mkdir -p /home/chrome/reports && chown -R chrome:chrome /home/chrome
17
16
18
17
# some place we can mount and view lighthouse reports
19
18
VOLUME /home/chrome/reports
20
19
WORKDIR /home/chrome/reports
21
20
22
-
23
21
COPY entrypoint.sh /usr/bin/entrypoint
24
22
25
23
# Run Chrome non-privileged
You can’t perform that action at this time.
0 commit comments