From c39e7084d38579d6bcd54e7b3eb64a1360afd3eb Mon Sep 17 00:00:00 2001 From: frederik-uni <147479464+frederik-uni@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:57:31 +0200 Subject: [PATCH] switch to chromium no prebuilt binaries for chrome on arm64 --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 02df2dd..cd1a25d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,12 @@ RUN apt-get update && apt-get install -y \ gnupg \ ca-certificates \ apt-transport-https \ + chromium \ + chromium-driver \ xvfb \ && rm -rf /var/lib/apt/lists/* -RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ - && echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \ - && apt-get update \ - && apt-get install -y google-chrome-stable \ - && rm -rf /var/lib/apt/lists/* +ENV CHROME_BIN=/usr/bin/chromium WORKDIR /app @@ -25,4 +23,4 @@ COPY . . EXPOSE 3000 -CMD ["pm2-runtime", "src/index.js"] \ No newline at end of file +CMD ["pm2-runtime", "src/index.js"]