pg: also use firefox
Dropping chromium reduced image size by ~500MB from 1.55GB to 1.04GB.
This commit is contained in:
parent
31fb97345e
commit
34393eec76
2 changed files with 4 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ FROM ubuntu:focal
|
|||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Playwright
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
||||
# ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
||||
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD true
|
||||
|
||||
# === INSTALL Node.js ===
|
||||
|
|
@ -47,7 +47,7 @@ COPY package*.json ./
|
|||
|
||||
# Install browser & dependencies only
|
||||
RUN npm install \
|
||||
&& npx playwright install --with-deps firefox chromium \
|
||||
&& npx playwright install --with-deps firefox \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue