repos

Dockerfile: copy universe/ into builder for sp500 include_str!

552cc079 by Isaac Bythewood · 10 days ago

Dockerfile: copy universe/ into builder for sp500 include_str!

The S&P 500 movers list is embedded at compile time via include_str!, so
universe/sp500.txt must be present in the builder stage, not only the runtime
image (where it was copied for the runtime-read starter.csv).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
modified Dockerfile
@@ -12,6 +12,9 @@ COPY Cargo.toml Cargo.lock ./COPY src ./srcCOPY migrations ./migrationsCOPY frontend ./frontend# Needed at COMPILE time: src/sp500.rs embeds universe/sp500.txt via include_str!# (the runtime stage also copies universe/ for starter.csv, read at runtime).COPY universe ./universeRUN cd frontend && bun install --frozen-lockfile && bun run build