Skip to content

Commit 0eeadcf

Browse files
chore(deploy): enable geometry features in Railway build
1 parent e119963 commit 0eeadcf

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ COPY vendor ./vendor
1616
COPY crates ./crates
1717
COPY src ./src
1818

19-
RUN CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS}" cargo build --locked -p rustyred-server --profile railway
19+
RUN CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS}" cargo build --locked -p rustyred-server --profile railway --features "geometry s2"
2020

2121
FROM debian:bookworm-slim
2222

docs/technical/deployment.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ The `Dockerfile` is a two-stage build:
99

1010
1. **Builder**`rust:1.95-bookworm`, installs `protobuf-compiler` (needed because
1111
`build.rs` compiles the vendored `.proto` with `tonic-build`), copies `vendor/`, `crates/`, and
12-
`src/`, then runs `cargo build -p rustyred-server --profile railway`. `CARGO_BUILD_JOBS`
13-
(default `2`) bounds parallelism for memory-limited CI builders. The `railway` profile
14-
inherits `release` but disables fat LTO so Railway cold builds do not spend minutes in
15-
release linking; the resulting binary is copied from
16-
`target/railway/rustyred-server`.
12+
`src/`, then runs
13+
`cargo build -p rustyred-server --profile railway --features "geometry s2"`.
14+
`CARGO_BUILD_JOBS` (default `2`) bounds parallelism for memory-limited CI
15+
builders. The `railway` profile inherits `release` but disables fat LTO so
16+
Railway cold builds do not spend minutes in release linking; the resulting
17+
binary is copied from `target/railway/rustyred-server`.
1718
2. **Runtime**`debian:bookworm-slim` with `ca-certificates`. The binary is installed as
1819
`/usr/local/bin/rusty-red-graph-server`. `EXPOSE 8380`. `CMD ["rusty-red-graph-server"]`.
1920

0 commit comments

Comments
 (0)