Skip to content

Commit d8f9e47

Browse files
committed
Update to puppeteer version
1 parent ada9f90 commit d8f9e47

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

Diff for: Dockerfile

-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ ENV NODE_ENV=production
55
# Set working directory
66
WORKDIR /app
77

8-
# We don't need the standalone Chromium
9-
ENV PUPPETEER_SKIP_DOWNLOAD true
10-
11-
# Install Chromium manually
12-
RUN apk add --no-cache \ chromium
13-
148
# Install dependencies
159
COPY package.json package-lock.json ./
1610
RUN npm ci --omit=dev

Diff for: commands/courseRating.js

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ const puppeteer = require("puppeteer");
99
async function extractRating(url) {
1010
const browser = await puppeteer.launch({
1111
headless: true,
12-
args: ["--no-sandbox", "--disable-setuid-sandbox"],
13-
executablePath: "/usr/bin/chromium",
1412
});
1513

1614
const page = await browser.newPage();

Diff for: package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"nodemailer": "6.9.13",
4646
"nodemon": "^3.0.0",
4747
"pg": "8.12.0",
48-
"puppeteer": "^22.11.0",
48+
"puppeteer": "^22.12.1",
4949
"textversionjs": "1.1.3",
5050
"voucher-code-generator": "1.3.0",
5151
"xkcd-api": "^1.0.1",

0 commit comments

Comments
 (0)