Improved dockerfile
This commit is contained in:
parent
ccd52271be
commit
a1417fb214
1 changed files with 2 additions and 1 deletions
|
@ -5,10 +5,11 @@ LABEL description="unlighthouse container for ci-based lighthouse testing"
|
||||||
WORKDIR /unlighthouse
|
WORKDIR /unlighthouse
|
||||||
|
|
||||||
ENV CHROMIUM_VERSION="135.0.7049.84-1~deb12u1"
|
ENV CHROMIUM_VERSION="135.0.7049.84-1~deb12u1"
|
||||||
|
ENV UNLIGHTHOUSE_VERSION="0.16.3"
|
||||||
ENV NODE_ENV='production'
|
ENV NODE_ENV='production'
|
||||||
|
|
||||||
# Update path so executable can be run globally
|
# Update path so executable can be run globally
|
||||||
ENV PATH="/unlighthouse/node_modules/.bin:${PATH}"
|
ENV PATH="/unlighthouse/node_modules/.bin:${PATH}"
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y install --no-install-recommends chromium=${CHROMIUM_VERSION} procps && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get -y install --no-install-recommends chromium=${CHROMIUM_VERSION} procps && rm -rf /var/lib/apt/lists/*
|
||||||
RUN npm install @unlighthouse/cli@0.16.3 puppeteer
|
RUN npm install @unlighthouse/cli@${UNLIGHTHOUSE_VERSION} puppeteer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue