Skip to content

Commit

Permalink
build: Stop downloading puppeteer in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 22, 2024
1 parent dc65286 commit 600e73e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Install deps
env:
PUPPETEER_SKIP_DOWNLOAD: true
run: yarn install --immutable
- name: Lint
run: yarn lint
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ COPY packages/shared packages/shared
COPY package.json yarn.lock .yarnrc.yml .

ENV NEXT_TELEMETRY_DISABLED 1
ENV PUPPETEER_SKIP_DOWNLOAD true

RUN corepack enable && \
cd /app/packages/db && \
Expand Down Expand Up @@ -62,6 +63,7 @@ COPY packages/db/package.json packages/db/package.json
COPY packages/shared/package.json packages/shared/package.json
COPY packages/workers/package.json packages/workers/package.json
COPY package.json yarn.lock .yarnrc.yml .
ENV PUPPETEER_SKIP_DOWNLOAD true

RUN corepack enable && \
cd /app/packages/workers && \
Expand All @@ -77,7 +79,6 @@ WORKDIR /app

# Install chromium needed for puppeteer
RUN apk add --no-cache chromium runuser
ENV PUPPETEER_SKIP_DOWNLOAD true
ENV CHROME_PATH "/usr/bin/chromium-browser"
ENV BROWSER_EXECUTABLE_PATH "/app/start-chrome.sh"
ENV BROWSER_USER_DATA_DIR="/tmp/chrome"
Expand Down

0 comments on commit 600e73e

Please sign in to comment.