Quick backtest mode for image builds (identical published numbers)
BACKTEST_QUICK=1 skips the hyperparameter grid and scores only the shipped + previous configs — same test metrics, a fraction of the build time on the 1-CPU VPS. The full grid search stays a local activity. Verified byte-level: quick output matches the grid run. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -4,7 +4,10 @@ WORKDIR /app
|
||||
COPY package.json bun.lock* bun.lockb* ./
|
||||
RUN bun install
|
||||
COPY . .
|
||||
RUN bun run data:build # icons + fixtures.json + ratings.json → public/
|
||||
# Quick backtest in image builds: score the shipped config only — the published
|
||||
# numbers are identical; the hyperparam grid search is a local-dev activity.
|
||||
ENV BACKTEST_QUICK=1
|
||||
RUN bun run data:build # icons + fixtures.json + ratings.json + backtest → public/
|
||||
RUN bun run build # tsc -b && vite build → /app/dist
|
||||
RUN bun run build:server # esbuild → /app/server/dist/index.js
|
||||
|
||||
|
||||
Reference in New Issue
Block a user