This commit is contained in:
Bastian Wagner
2026-03-12 13:47:41 +01:00
parent a71f1260b4
commit bd76746b4f
2 changed files with 2 additions and 0 deletions

View File

@@ -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"]

View File

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