try new node image
This commit is contained in:
parent
f86040af55
commit
72f5e594e0
@ -1,5 +1,5 @@
|
||||
# Install dependencies only when needed
|
||||
FROM node:19-alpine AS deps
|
||||
FROM node:18-bullseye-slim AS deps
|
||||
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
||||
ENV PUPPETEER_EXECUTABLE_PATH /usr/bin/chromium-browser
|
||||
@ -9,7 +9,7 @@ WORKDIR leCoffre
|
||||
RUN npm install -D prisma@4.11.0
|
||||
COPY package.json ./
|
||||
|
||||
RUN apk update && apk add openssh-client git chromium
|
||||
RUN apt update && apt install openssh-client git chromium
|
||||
|
||||
COPY id_rsa /root/.ssh/id_rsa
|
||||
RUN chmod 600 ~/.ssh/id_rsa
|
||||
|
@ -73,7 +73,6 @@ export default class AnchoringProofService extends BaseService {
|
||||
public async generate(data: AnchoringProofData): Promise<Buffer> {
|
||||
const browser = await puppeteer.launch({
|
||||
headless: "new",
|
||||
executablePath: process.env['PUPPETEER_EXECUTABLE_PATH'],
|
||||
args: ["--no-sandbox", "--disable-setuid-sandbox"],
|
||||
});
|
||||
const page = await browser.newPage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user