- Runtime container env injected by docker/entrypoint.sh -> runtime-env.js (loaded before the bundle); src/lib/runtime-env.ts reads it. FABRIC_OIDC_ONLY hides the password form; FIX_TO_CENTER pins the Center base and hides its input. Dockerfile ENTRYPOINT + ENV defaults. - LoginPage: 'Sign in with SSO' when /auth/oidc/status enabled; password form gated by OIDC_ONLY; center input gated by FIX_TO_CENTER. - /oidc route (OidcCallback) redeems the fragment ticket via /auth/oidc/exchange and adopts the session (AuthContext.adoptSession). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
597 B
Docker
24 lines
597 B
Docker
FROM node:22-alpine AS build
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.27-alpine AS runtime
|
|
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY docker/entrypoint.sh /docker-entrypoint-fabric.sh
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
RUN chmod +x /docker-entrypoint-fabric.sh
|
|
|
|
# Runtime SPA config (see docker/entrypoint.sh). Override at `docker run`
|
|
# / compose: empty values keep prior behavior.
|
|
ENV FABRIC_OIDC_ONLY=""
|
|
ENV FIX_TO_CENTER=""
|
|
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/docker-entrypoint-fabric.sh"]
|
|
CMD ["nginx", "-g", "daemon off;"]
|