Build the sandbox image with the API crate present
The API joined the Cargo workspace, and Cargo needs every member's manifest to resolve it, so the image build failed until apps/api was copied in.
2 files+4−10/2 viewed
| 6 | 6 | **/build | |
| 7 | 7 | **/.wrangler | |
| 8 | 8 | **/.dev.vars* | |
| 9 | − | apps | |
| 9 | + | apps/web | |
| 10 | + | apps/docs | |
| 10 | 11 | packages | |
| 11 | 12 | docs |
| 6 | 6 | FROM rust:1-slim-bookworm AS build | |
| 7 | 7 | WORKDIR /src | |
| 8 | 8 | COPY Cargo.toml Cargo.lock ./ | |
| 9 | + | # Cargo needs every workspace member present to resolve the workspace. | |
| 10 | + | COPY apps/api apps/api | |
| 9 | 11 | COPY crates crates | |
| 10 | 12 | COPY services services | |
| 11 | 13 | RUN cargo build --release --package g1t-runner |