- simulate/page.tsx: remove launch form — simulations are triggered via Airflow DAG, not the admin UI. Page now shows run history + links to Airflow and MLflow only (#109) - docs.ts: use DOCS_ROOT env var (fallback: ../../docs for local dev) so the path works in Docker standalone where CWD is /app (#110) - Dockerfile.admin: copy docs/ into the runner image at /app/docs and set DOCS_ROOT=/app/docs so listAllDocs() finds the files at runtime (#110) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
1.2 KiB
Docker
35 lines
1.2 KiB
Docker
# syntax=docker/dockerfile:1.7
|
|
|
|
FROM node:22-slim AS base
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& npm install -g pnpm
|
|
ENV CI=true \
|
|
PNPM_HOME=/pnpm \
|
|
PATH=/pnpm:$PATH
|
|
RUN pnpm config set store-dir /pnpm/store
|
|
|
|
FROM base AS builder
|
|
WORKDIR /app
|
|
COPY pnpm-lock.yaml ./
|
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm fetch
|
|
COPY . .
|
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
|
pnpm install --frozen-lockfile --offline \
|
|
--filter @oo/admin... --filter @oo/shared-types
|
|
RUN pnpm --filter @oo/shared-types build
|
|
ARG NEXT_PUBLIC_MLFLOW_URL=/mlflow
|
|
ARG NEXT_PUBLIC_AIRFLOW_URL=/airflow
|
|
ENV NEXT_TELEMETRY_DISABLED=1 \
|
|
NEXT_PUBLIC_MLFLOW_URL=$NEXT_PUBLIC_MLFLOW_URL \
|
|
NEXT_PUBLIC_AIRFLOW_URL=$NEXT_PUBLIC_AIRFLOW_URL
|
|
RUN pnpm --filter @oo/admin build
|
|
|
|
FROM node:22-slim AS runner
|
|
ENV NODE_ENV=production NEXT_TELEMETRY_DISABLED=1 PORT=3080 DOCS_ROOT=/app/docs
|
|
WORKDIR /app
|
|
COPY --from=builder /app/apps/admin/.next/standalone ./
|
|
COPY --from=builder /app/apps/admin/.next/static ./apps/admin/.next/static
|
|
COPY --from=builder /app/docs ./docs
|
|
CMD ["node", "apps/admin/server.js"]
|