Skip to content

Commit

Permalink
Reorder Playwright build to install deps before browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan971 committed Mar 19, 2024
1 parent c317320 commit 11baa87
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ RUN curl -fsSL -o setup_node.sh https://rpm.nodesource.com/setup_20.x && \
chmod +x setup_node.sh && \
./setup_node.sh && \
rm -v setup_node.sh && \
yum install nodejs -y && \
npm install -g npm && \
mkdir -pv "$PLAYWRIGHT_BROWSERS_PATH" && \
npx --yes playwright@^${PLAYWRIGHT_VERSION} install chromium && \
rm -rf $PLAYWRIGHT_BROWSERS_PATH/ffmpeg* && \
rm -rf $PLAYWRIGHT_BROWSERS_PATH/firefox* && \
rm -rf $PLAYWRIGHT_BROWSERS_PATH/webkit* && \
yum install -y \
at-spi2-atk \
at-spi2-core \
Expand All @@ -141,8 +134,15 @@ RUN curl -fsSL -o setup_node.sh https://rpm.nodesource.com/setup_20.x && \
libXdamage \
libXfixes \
mesa-libgbm \
nodejs \
nss \
pango && \
npm install -g npm && \
mkdir -pv "$PLAYWRIGHT_BROWSERS_PATH" && \
npx --yes playwright@^${PLAYWRIGHT_VERSION} install chromium && \
rm -rf $PLAYWRIGHT_BROWSERS_PATH/ffmpeg* && \
rm -rf $PLAYWRIGHT_BROWSERS_PATH/firefox* && \
rm -rf $PLAYWRIGHT_BROWSERS_PATH/webkit* && \
yum autoremove -y nodejs && \
rm -rf /var/cache/yum/* && \
yum clean all && \
Expand Down

0 comments on commit 11baa87

Please sign in to comment.