-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 674 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 674 Bytes
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
FROM node:21.7.3-alpine3.19
ARG LIGHTHOUSE_VERSION=12.0.0
# Installs latest Chromium package.
RUN apk upgrade -U -a \
&& apk add --no-cache \
libstdc++ \
chromium \
harfbuzz \
nss \
freetype \
ttf-freefont \
bash \
&& rm -rf /var/cache/* \
&& mkdir /var/cache/apk
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
#https://raw.githubusercontent.com/jfrazelle/dotfiles/master/etc/docker/seccomp/chrome.json
COPY chrome.json /usr/src/chrome.json
RUN export CHROME_PATH=/usr/lib/chromium/
RUN yarn global add lighthouse@$LIGHTHOUSE_VERSION
COPY audit.sh /usr/local/bin/audit
RUN chmod +x /usr/local/bin/audit
ENTRYPOINT ["audit"]