Skip to content

Commit bd8dd79

Browse files
committed
deploy: COPY data/survey into builder (include_str! survey CSVs); slim docker context
The compile-time include_str! in lifestyle.rs needs data/survey/ present in the builder stage before cargo build. Also exclude frontend/assets/tools/config and the full root tiles.db from the build context (the image uses server_tiles/).
1 parent 6d139ad commit bd8dd79

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,14 @@ state.db-*
1616
NOTES.md
1717
BRIEF.md
1818
.claude
19+
tiles.db
20+
frontend
21+
assets
22+
tools
23+
config
24+
scripts
25+
rubric_*.yaml
26+
rubric.yaml
27+
*.md
28+
data/*.aux.xml
29+
verify_out

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ WORKDIR /app
66
# so `-p simfrancisco --bin server` never compiles it.
77
COPY Cargo.toml Cargo.lock ./
88
COPY crates ./crates
9+
# Survey CSVs are baked into the binary at compile time via include_str! in
10+
# crates/sim-core/src/lifestyle.rs (../../../data/survey/*.csv), so they must be
11+
# present in the builder before the build.
12+
COPY data/survey ./data/survey
913
RUN cargo build --release -p simfrancisco --bin server
1014

1115
FROM debian:bookworm-slim

0 commit comments

Comments
 (0)