DEV Community

Discussion on: Using Headless Chrome with Cloud Run

Collapse
 
johannesoak profile image
Johannes Eklund

I ran into issues when deploying it to Cloud Run. The fix for me was too add that "wget" should be installed otherwise chrome wasn't able to be downloaded.

So this was the whole line I ran in the Docker file
RUN apt-get install -y wget gconf-service libasound2 libatk1.0-0 libcairo2 libcups2 libfontconfig1 libgdk-pixbuf2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libxss1 fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils

Collapse
 
shreyasashtamkar profile image
Shreyas Ashtamkar

If you are using anything after python 3.7 you would face that issue, since it uses Debian Bullseye from when that package is unavailable.

try this -
FROM python: 3.8-buster

worked for me.