fix(docker): bake VITE_SKIP_RXRESUME_ONBOARDING into client build

Production images previously omitted the flag, so the full RxResume wizard
always appeared. Default skip matches self-hosted LLM-in-.env workflows;
override via docker-compose build args if needed.

Made-with: Cursor
This commit is contained in:
ilia 2026-04-05 14:44:59 -04:00
parent b2a2507615
commit 0a7dbb4f16
4 changed files with 12 additions and 3 deletions

View File

@ -24,7 +24,8 @@ BASIC_AUTH_USER=
BASIC_AUTH_PASSWORD= BASIC_AUTH_PASSWORD=
# Optional: client build only — skip RxResume steps in the onboarding wizard (search without PDF export). # Optional: client build only — skip RxResume steps in the onboarding wizard (search without PDF export).
# Set when running `npm run build:client` / Vite dev server; not read by the Docker Node server. # - Local dev: set here or export before `npm run dev` / `npm run build:client` in orchestrator.
# - Docker: set at IMAGE BUILD time (Dockerfile ARG / docker-compose build args), not runtime .env.
# VITE_SKIP_RXRESUME_ONBOARDING=true # VITE_SKIP_RXRESUME_ONBOARDING=true
# Public base URL used to generate tracer links when PDFs are created by # Public base URL used to generate tracer links when PDFs are created by

View File

@ -48,9 +48,11 @@ git add -A && git commit -m "Your message" && git push gitea main
4. Start: 4. Start:
```bash ```bash
docker compose up -d docker compose up -d --build
``` ```
The image build sets `VITE_SKIP_RXRESUME_ONBOARDING=true` by default so the first-run wizard only asks for **LLM** (Reactive Resume / PDF template steps are skipped; configure those in **Settings** if needed). Rebuild after changing that build arg.
5. Open the UI: `http://<VM-IP>:3005` (port mapped in `docker-compose.yml`). 5. Open the UI: `http://<VM-IP>:3005` (port mapped in `docker-compose.yml`).
6. Persist data: compose mounts `./data` — back up that directory. 6. Persist data: compose mounts `./data` — back up that directory.

View File

@ -67,7 +67,10 @@ COPY extractors/ukvisajobs ./extractors/ukvisajobs
WORKDIR /app/docs-site WORKDIR /app/docs-site
RUN npm run build RUN npm run build
# Build client bundle # Build client bundle (Vite inlines VITE_* at compile time — not read from runtime .env)
# Default: skip Reactive Resume steps in onboarding; configure PDFs via Settings or env on the server.
ARG VITE_SKIP_RXRESUME_ONBOARDING=true
ENV VITE_SKIP_RXRESUME_ONBOARDING=${VITE_SKIP_RXRESUME_ONBOARDING}
WORKDIR /app/orchestrator WORKDIR /app/orchestrator
RUN npm run build:client RUN npm run build:client

View File

@ -7,6 +7,9 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
args:
# Set "false" only if you want Reactive Resume steps in the first-run wizard (rebuild image).
VITE_SKIP_RXRESUME_ONBOARDING: "true"
image: job-ops:local image: job-ops:local
container_name: job-ops container_name: job-ops
ports: ports: