Files
dependabot[bot] c7a0044336 core: bump library/nginx from 6e67f8e to 5ab5b0b in /website (#27473)
Bumps library/nginx from `6e67f8e` to `5ab5b0b`.

---
updated-dependencies:
- dependency-name: library/nginx
  dependency-version: 1.31.8-trixie
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 11:38:33 +00:00

77 lines
4.6 KiB
Docker

# Tag must track the root package.json `packageManager` version. ${BUILDPLATFORM}
# keeps the binary's arch aligned with the builder stage on cross-arch builds.
FROM --platform=${BUILDPLATFORM} ghcr.io/pnpm/pnpm:12.9.1@sha256:77123fd40a39db0eb8be6bddfcf0cea15e000122b9221ccce2e4415be29050f2 AS pnpm
FROM --platform=${BUILDPLATFORM} docker.io/library/node:26.13.0-trixie@sha256:6d2c7d5d074bf72f81ddc252b4fbb5d625bc028eeda49cb4b8c2ff8eda1ee617 AS docs-builder
ENV NODE_ENV=production
WORKDIR /work
COPY --from=pnpm /opt/pnpm /opt/pnpm
ENV PATH="/opt/pnpm:${PATH}"
RUN --mount=type=bind,target=/work/package.json,src=./package.json \
--mount=type=bind,target=/work/scripts/node/,src=./scripts/node/ \
--mount=type=bind,target=/work/packages/logger-js/,src=./packages/logger-js/ \
--mount=type=bind,target=/work/website/package.json,src=./website/package.json \
--mount=type=bind,target=/work/website/pnpm-lock.yaml,src=./website/pnpm-lock.yaml \
node ./scripts/node/lint-runtime.ts ./website
# Hoisted root install so `@goauthentik/docusaurus-config` resolves its own deps
# (e.g. `deepmerge-ts`) during the docs build. Its source, `@goauthentik/fonts`
# and `@goauthentik/tsconfig` are copied rather than bind-mounted, so pnpm can
# write the per-package node_modules it places workspace links in.
COPY ./packages/tsconfig /work/packages/tsconfig/
COPY ./packages/docusaurus-config /work/packages/docusaurus-config/
COPY ./packages/fonts /work/packages/fonts/
RUN --mount=type=bind,target=/work/.npmrc,src=./.npmrc \
--mount=type=bind,target=/work/package.json,src=./package.json \
--mount=type=bind,target=/work/pnpm-lock.yaml,src=./pnpm-lock.yaml \
--mount=type=bind,target=/work/pnpm-workspace.yaml,src=./pnpm-workspace.yaml \
--mount=type=bind,target=/work/packages/esbuild-plugin-live-reload/package.json,src=./packages/esbuild-plugin-live-reload/package.json \
--mount=type=bind,target=/work/packages/oxlint-config/package.json,src=./packages/oxlint-config/package.json \
--mount=type=bind,target=/work/packages/logger-js/package.json,src=./packages/logger-js/package.json \
--mount=type=bind,target=/work/packages/oxfmt-config/package.json,src=./packages/oxfmt-config/package.json \
--mount=type=bind,target=/work/packages/tsconfig/package.json,src=./packages/tsconfig/package.json \
--mount=type=bind,target=/work/lifecycle/aws/package.json,src=./lifecycle/aws/package.json \
--mount=type=cache,id=pnpm-root,sharing=shared,target=/root/.local/share/pnpm/store \
pnpm install --frozen-lockfile --config.node-linker=hoisted \
--filter "@goauthentik/docusaurus-config"
RUN --mount=type=bind,target=/work/.npmrc,src=./.npmrc \
--mount=type=bind,target=/work/website/package.json,src=./website/package.json \
--mount=type=bind,target=/work/website/pnpm-lock.yaml,src=./website/pnpm-lock.yaml \
--mount=type=bind,target=/work/website/pnpm-workspace.yaml,src=./website/pnpm-workspace.yaml \
--mount=type=bind,target=/work/website/vendored/detect-package-manager,src=./website/vendored/detect-package-manager \
--mount=type=bind,target=/work/website/docusaurus-theme/package.json,src=./website/docusaurus-theme/package.json \
--mount=type=bind,target=/work/website/api/package.json,src=./website/api/package.json \
--mount=type=bind,target=/work/website/integrations/package.json,src=./website/integrations/package.json \
--mount=type=bind,target=/work/website/docs/package.json,src=./website/docs/package.json \
--mount=type=cache,id=pnpm-website,sharing=shared,target=/root/.local/share/pnpm/store \
pnpm --dir website install --frozen-lockfile
WORKDIR /work/website
COPY ./website /work/website/
COPY ./blueprints /work/blueprints/
COPY ./schema.yml /work/
COPY ./lifecycle/container/compose.yml /work/lifecycle/container/
COPY ./SECURITY.md /work/
RUN pnpm run build
FROM docker.io/library/nginx:1.31.8-trixie@sha256:5ab5b0b01097420873a3f3330f44248e34a3c2a3e8d5ee30658aeae8cb7435da
LABEL org.opencontainers.image.authors="Authentik Security Inc." \
org.opencontainers.image.source="https://github.com/goauthentik/authentik" \
org.opencontainers.image.description="authentik product documentation" \
org.opencontainers.image.documentation="https://docs.goauthentik.io" \
org.opencontainers.image.licenses="https://github.com/goauthentik/authentik/blob/main/LICENSE" \
org.opencontainers.image.title="authentik docs image" \
org.opencontainers.image.url="https://goauthentik.io" \
org.opencontainers.image.vendor="Authentik Security Inc."
COPY --from=docs-builder /work/website/docs/build /usr/share/nginx/html