File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,24 @@ WORKDIR /app
30
30
31
31
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
32
32
33
- RUN apt-get update && apt-get install gnupg wget -y && \
33
+ RUN ARCH=$(dpkg --print-architecture) && \
34
+ if [ "$ARCH" = "amd64" ]; then \
34
35
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
35
36
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
36
37
apt-get update && \
37
- apt-get install google-chrome-stable -y --no-install-recommends && \
38
+ apt-get install google-chrome-stable -y --no-install-recommends; \
39
+ elif [ "$ARCH" = "arm64" ]; then \
40
+ wget -q -O - 'https://playwright.azureedge.net/builds/chromium/1088/chromium-linux-arm64.zip' && \
41
+ unzip chromium-linux-arm64.zip && \
42
+ mv chrome-linux /usr/bin/chromium-browser && \
43
+ ln -s /usr/bin/chromium-browser /usr/bin/google-chrome && \
44
+ rm chromium-linux-arm64.zip; \
45
+ else \
46
+ echo "Unsupported architecture: $ARCH" && exit 1; \
47
+ fi && \
38
48
rm -rf /var/lib/apt/lists/*
39
49
50
+
40
51
RUN yarn config set registry https://registry.npmjs.org/
41
52
RUN yarn config set network-timeout 1200000
42
53
You can’t perform that action at this time.
0 commit comments