Skip to content

Commit

Permalink
Installing chrome in docker to support headless browser scenarios (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
hillary-mutisya authored Dec 16, 2024
1 parent 928ee31 commit 2511248
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions ts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,35 @@ ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

# Install dependencies required for Chrome/Puppeteer
RUN apt-get update && apt-get install -y \
wget \
gnupg \
ca-certificates \
procps \
libxss1 \
libgconf-2-4 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libgdk-pixbuf2.0-0 \
libgtk-3-0 \
libgbm-dev \
libnss3-dev \
libxss-dev \
fonts-liberation \
libappindicator3-1 \
libasound2 \
libdbus-1-3 \
libnspr4 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
xdg-utils

# Install Chrome for Puppeteer
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt-get install -y ./google-chrome-stable_current_amd64.deb \
&& rm google-chrome-stable_current_amd64.deb

# base only image
FROM base AS build
Expand Down

0 comments on commit 2511248

Please sign in to comment.