Skip to content

[Bug] puppeteer-service-ts docker build failing #36

@renaudguerin

Description

@renaudguerin

Describe the Bug

docker-compose build fails when building puppeteer-service-ts. apt can't find google-chrome-stable.
Could it be an architecture issue (I don't think Chrome is available for linux/arm64) ? I'm on a Mac Mini M4 Pro, macOS 15.3.2

I tried adding FROM --platform=linux/amd64 node:18-slim in the puppeteer Dockerfile, that didn't help.

To Reproduce

Run docker-compose build in the repo root on an ARM Mac (and other ARM systems ?)

Logs

31.78 Hit:1 http://deb.debian.org/debian bookworm InRelease
31.79 Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
31.79 Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
32.19 Get:4 http://dl.google.com/linux/chrome/deb stable InRelease [1825 B]
32.68 Get:5 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1216 B]
32.69 Fetched 3041 B in 1s (3294 B/s)
32.69 Reading package lists...
32.90 W: http://dl.google.com/linux/chrome/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
32.91 Reading package lists...
33.12 Building dependency tree...
33.17 Reading state information...
33.18 E: Unable to locate package google-chrome-stable
------
failed to solve: process "/bin/sh -c apt-get update &&     apt-get install -y wget gnupg &&     wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - &&     echo \"deb [arch=amd64] http://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     fonts-ipafont-gothic     fonts-wqy-zenhei     fonts-thai-tlwg     fonts-kacst     fonts-symbola     fonts-noto     fonts-freefont-ttf     --no-install-recommends &&     rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions