mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-18 11:29:26 +03:00
72af009de8
* website: Flesh out version picker. Port 3.8 theme. * website: Update Dockerfile to include compose. * website: Flesh out branch override. Tidy list items.
23 lines
682 B
Docker
23 lines
682 B
Docker
FROM --platform=${BUILDPLATFORM} docker.io/library/node:24-slim AS docs-builder
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
WORKDIR /work/website
|
|
|
|
RUN --mount=type=bind,target=/work/website/package.json,src=./website/package.json \
|
|
--mount=type=bind,target=/work/website/package-lock.json,src=./website/package-lock.json \
|
|
--mount=type=cache,id=npm-website,sharing=shared,target=/root/.npm \
|
|
npm ci --include=dev
|
|
|
|
COPY ./website /work/website/
|
|
COPY ./blueprints /work/blueprints/
|
|
COPY ./schema.yml /work/
|
|
COPY ./docker-compose.yml /work/
|
|
COPY ./SECURITY.md /work/
|
|
|
|
RUN npm run build
|
|
|
|
FROM docker.io/library/nginx:1.29.0
|
|
|
|
COPY --from=docs-builder /work/website/build /usr/share/nginx/html
|