chromium
This commit is contained in:
@@ -22,6 +22,7 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY --from=build /app/dist ./dist
|
||||
COPY package*.json ./
|
||||
RUN npm install puppeteer-core
|
||||
|
||||
EXPOSE 4000
|
||||
CMD ["node", "dist/src/main"]
|
||||
@@ -14,6 +14,7 @@ export class KeyHandoverPdfService {
|
||||
async generatePdf(dto: KeyHandoverDto): Promise<Buffer> {
|
||||
const browser = await puppeteer.launch({
|
||||
headless: true,
|
||||
executablePath: '/usr/bin/chromium',
|
||||
args: ['--no-sandbox', '--disable-setuid-sandbox'],
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user