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:
parent
b2a2507615
commit
0a7dbb4f16
@ -24,7 +24,8 @@ BASIC_AUTH_USER=
|
||||
BASIC_AUTH_PASSWORD=
|
||||
|
||||
# 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
|
||||
|
||||
# Public base URL used to generate tracer links when PDFs are created by
|
||||
|
||||
@ -48,9 +48,11 @@ git add -A && git commit -m "Your message" && git push gitea main
|
||||
4. Start:
|
||||
|
||||
```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`).
|
||||
|
||||
6. Persist data: compose mounts `./data` — back up that directory.
|
||||
|
||||
@ -67,7 +67,10 @@ COPY extractors/ukvisajobs ./extractors/ukvisajobs
|
||||
WORKDIR /app/docs-site
|
||||
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
|
||||
RUN npm run build:client
|
||||
|
||||
|
||||
@ -7,6 +7,9 @@ services:
|
||||
build:
|
||||
context: .
|
||||
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
|
||||
container_name: job-ops
|
||||
ports:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user