From a427df10c328a85a1872707f05f3a04ccaea2aed Mon Sep 17 00:00:00 2001 From: Max S Date: Mon, 30 Sep 2024 16:32:00 +0200 Subject: [PATCH] use executablePath --- Dockerfile | 2 +- .../common/AnchoringProofService/AnchoringProofService.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e98bde33..b50d3c5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ WORKDIR leCoffre RUN npm install -D prisma@4.11.0 COPY package.json ./ -RUN apk update && apk add openssh-client git +RUN apk update && apk add openssh-client git chromium COPY id_rsa /root/.ssh/id_rsa RUN chmod 600 ~/.ssh/id_rsa diff --git a/src/services/common/AnchoringProofService/AnchoringProofService.ts b/src/services/common/AnchoringProofService/AnchoringProofService.ts index 5ae01443..83fafda3 100644 --- a/src/services/common/AnchoringProofService/AnchoringProofService.ts +++ b/src/services/common/AnchoringProofService/AnchoringProofService.ts @@ -21,6 +21,7 @@ export default class AnchoringProofService extends BaseService { */ public async generate(data: AnchoringProofData): Promise { const browser = await puppeteer.launch({ + executablePath: `/usr/bin/chromium`, args: ["--no-sandbox", "--disable-setuid-sandbox"], });