Skip to content

Commit

Permalink
Update to puppeteer version
Browse files Browse the repository at this point in the history
  • Loading branch information
Domin0de committed Jul 9, 2024
1 parent ada9f90 commit d8f9e47
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ ENV NODE_ENV=production
# Set working directory
WORKDIR /app

# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_DOWNLOAD true

# Install Chromium manually
RUN apk add --no-cache \ chromium

# Install dependencies
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
Expand Down
2 changes: 0 additions & 2 deletions commands/courseRating.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const puppeteer = require("puppeteer");
async function extractRating(url) {
const browser = await puppeteer.launch({
headless: true,
args: ["--no-sandbox", "--disable-setuid-sandbox"],
executablePath: "/usr/bin/chromium",
});

const page = await browser.newPage();
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"nodemailer": "6.9.13",
"nodemon": "^3.0.0",
"pg": "8.12.0",
"puppeteer": "^22.11.0",
"puppeteer": "^22.12.1",
"textversionjs": "1.1.3",
"voucher-code-generator": "1.3.0",
"xkcd-api": "^1.0.1",
Expand Down

0 comments on commit d8f9e47

Please sign in to comment.