From 4adb1c169361b13ffd8df6dc4a90ad6cde455c08 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Thu, 28 Sep 2023 13:58:07 -0700 Subject: [PATCH] Chromium 115 --- backend/dops/Dockerfile | 3 +++ backend/dops/src/modules/dgen/dgen.service.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/dops/Dockerfile b/backend/dops/Dockerfile index 4645affce..48a73cb6b 100644 --- a/backend/dops/Dockerfile +++ b/backend/dops/Dockerfile @@ -67,6 +67,9 @@ RUN apk update && apk upgrade && \ mv /etc/fonts/conf.d/44-wqy-zenhei.conf /etc/fonts/conf.d/74-wqy-zenhei.conf && \ rm -rf /var/cache/apk/* +# ARG CHROMIUM_VERSION=115.0.5790.170-r0 +RUN apk add --no-cache chromium + WORKDIR /app COPY --from=build --chown=app /app/node_modules ./node_modules COPY --from=build --chown=app /app/dist ./dist diff --git a/backend/dops/src/modules/dgen/dgen.service.ts b/backend/dops/src/modules/dgen/dgen.service.ts index dc0d6946b..536452f49 100644 --- a/backend/dops/src/modules/dgen/dgen.service.ts +++ b/backend/dops/src/modules/dgen/dgen.service.ts @@ -232,7 +232,7 @@ export class DgenService { try { const browser = await puppeteer.launch({ headless: 'new', - executablePath: 'usr/bin/chromium', + // executablePath: '/usr/bin/chromium-browser', args: [ '--no-sandbox', '--disable-setuid-sandbox',