mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
feat: upgrade alpine and support chromium path (#2353)
Upgrade alpine to 3.22 Support chromium executable path
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
###########################
|
###########################
|
||||||
# BASE CONTAINER #
|
# BASE CONTAINER #
|
||||||
###########################
|
###########################
|
||||||
FROM node:22-alpine3.20 AS base
|
FROM node:22-alpine3.22 AS base
|
||||||
|
|
||||||
RUN apk add --no-cache openssl
|
RUN apk add --no-cache openssl
|
||||||
RUN apk add --no-cache font-freefont
|
RUN apk add --no-cache font-freefont
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ export const getAuditLogsPdf = async ({ documentId, language }: GetAuditLogsPdfO
|
|||||||
// !: Previously we would have to keep the playwright version in sync with the browserless version to avoid errors.
|
// !: Previously we would have to keep the playwright version in sync with the browserless version to avoid errors.
|
||||||
browser = await chromium.connectOverCDP(browserlessUrl);
|
browser = await chromium.connectOverCDP(browserlessUrl);
|
||||||
} else {
|
} else {
|
||||||
browser = await chromium.launch();
|
browser = await chromium.launch({
|
||||||
|
executablePath: env('PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH') || undefined,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!browser) {
|
if (!browser) {
|
||||||
|
|||||||
@@ -33,7 +33,9 @@ export const getCertificatePdf = async ({ documentId, language }: GetCertificate
|
|||||||
// !: Previously we would have to keep the playwright version in sync with the browserless version to avoid errors.
|
// !: Previously we would have to keep the playwright version in sync with the browserless version to avoid errors.
|
||||||
browser = await chromium.connectOverCDP(browserlessUrl);
|
browser = await chromium.connectOverCDP(browserlessUrl);
|
||||||
} else {
|
} else {
|
||||||
browser = await chromium.launch();
|
browser = await chromium.launch({
|
||||||
|
executablePath: env('PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH') || undefined,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!browser) {
|
if (!browser) {
|
||||||
|
|||||||
Reference in New Issue
Block a user