Skip to content

Commit

Permalink
use shared playwright browser location path (#1468) (#1472)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrah authored Apr 1, 2023
1 parent 7e9257c commit 1ca3192
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ RUN apt-get -qq update >/dev/null && apt-get install -qq fonts-liberation chromi
USER root
# skip download, we already have it installed
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
RUN npm install -g --unsafe-perm=true --allow-root backstopjs@${BACKSTOPJS_VERSION}
# playwright shared browser path (does install a 2nd chromium - can't be skipped)
ENV PLAYWRIGHT_BROWSERS_PATH=/opt/pw-browsers
RUN mkdir ${PLAYWRIGHT_BROWSERS_PATH} && npm install -g --unsafe-perm=true --allow-root backstopjs@${BACKSTOPJS_VERSION}
RUN rm -rf /var/lib/apt/lists/* && apt-get -qq clean >/dev/null

USER node
Expand Down

0 comments on commit 1ca3192

Please sign in to comment.