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