Skip to content

Commit

Permalink
BackStopJs DockerFile Fix Arm M1 Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
moabualruz committed Jun 30, 2022
1 parent 308f47c commit 90f79fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile.visual-regression
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ RUN /bin/bash -c 'set -ex && \
sudo npm install -g --unsafe-perm=true --allow-root backstopjs@${BACKSTOPJS_VERSION}; \
else \
sudo PUPPETEER_SKIP_DOWNLOAD=true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install -g --unsafe-perm=true --allow-root backstopjs@${BACKSTOPJS_VERSION} && \
apt-get -qqy update && apt-get -qqy --no-install-recommends install chromium; \
apt-get -qqy update && apt-get -qqy --no-install-recommends install chromium && \
sudo test -f /usr/bin/chromium && sudo ln -s /usr/bin/chromium /usr/bin/chromium-browser && sudo ln -s /usr/bin/chromium /usr/bin/chrome; \
fi'

RUN wget https://dl-ssl.google.com/linux/linux_signing_key.pub && sudo apt-key add linux_signing_key.pub
Expand All @@ -41,8 +42,6 @@ RUN apt-get -qqy update \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get -qyy clean

RUN sudo test -f /usr/bin/chromium && sudo ln -s /usr/bin/chromium /usr/bin/chromium-browser && sudo ln -s /usr/bin/chromium /usr/bin/chrome

WORKDIR /src

ENTRYPOINT ["backstop"]

0 comments on commit 90f79fb

Please sign in to comment.