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"], });