website: fix build in docker (#13430)
* website: fix build in docker Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * sigh Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> --------- Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
committed by
GitHub
parent
727404c9a4
commit
9e0a9f4eee
@ -3,7 +3,8 @@
|
|||||||
# Stage 1: Build website
|
# Stage 1: Build website
|
||||||
FROM --platform=${BUILDPLATFORM} docker.io/library/node:22 AS website-builder
|
FROM --platform=${BUILDPLATFORM} docker.io/library/node:22 AS website-builder
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production \
|
||||||
|
GIT_UNAVAILABLE=true
|
||||||
|
|
||||||
WORKDIR /work/website
|
WORKDIR /work/website
|
||||||
|
|
||||||
|
|||||||
@ -102,7 +102,8 @@ const createConfig = (): Config => {
|
|||||||
docs: {
|
docs: {
|
||||||
id: "docs",
|
id: "docs",
|
||||||
sidebarPath: "./sidebars.js",
|
sidebarPath: "./sidebars.js",
|
||||||
showLastUpdateTime: true,
|
showLastUpdateTime:
|
||||||
|
process.env.GIT_UNAVAILABLE != "true",
|
||||||
editUrl:
|
editUrl:
|
||||||
"https://github.com/goauthentik/authentik/edit/main/website/",
|
"https://github.com/goauthentik/authentik/edit/main/website/",
|
||||||
docItemComponent: "@theme/ApiItem",
|
docItemComponent: "@theme/ApiItem",
|
||||||
|
|||||||
Reference in New Issue
Block a user