use executablePath

This commit is contained in:
Max S 2024-09-30 16:32:00 +02:00
parent edfd55ec92
commit a427df10c3
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ WORKDIR leCoffre
RUN npm install -D prisma@4.11.0 RUN npm install -D prisma@4.11.0
COPY package.json ./ 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 COPY id_rsa /root/.ssh/id_rsa
RUN chmod 600 ~/.ssh/id_rsa RUN chmod 600 ~/.ssh/id_rsa

View File

@ -21,6 +21,7 @@ export default class AnchoringProofService extends BaseService {
*/ */
public async generate(data: AnchoringProofData): Promise<Buffer> { public async generate(data: AnchoringProofData): Promise<Buffer> {
const browser = await puppeteer.launch({ const browser = await puppeteer.launch({
executablePath: `/usr/bin/chromium`,
args: ["--no-sandbox", "--disable-setuid-sandbox"], args: ["--no-sandbox", "--disable-setuid-sandbox"],
}); });