You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could copy the binaries from a Node image using
FROM node:24 as node
ENV npm_config_ignore_scripts=true
ENV YARN_ENABLE_SCRIPTS=false
FROM php:8.3-apache AS base
COPY --from=node /usr/local/bin /usr/local/bin
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
We should clean up in this same layer as well. It's 802MB, not sure how much it can be trimmed down.
# Install Playwright OS dependencies.
RUN npx playwright install-deps
Actually I think we should restructure this:
# Used for PHPUnit functional tests.
RUN CHROME_VERSION=$(curl -s https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r '.channels.Stable.version') && \
# Install Playwright OS dependencies.
RUN npx playwright install-deps && \
date > /tmp/cache-bust && npx playwright install --with-deps && \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/
Activity
mglaman commentedon Nov 7, 2025
Actually, isn't
npx playwright install-depsnot needed due to--with-deps