Skip to content

Commit e58fcd8

Browse files
committed
fix(docker): build push gateway without --locked after cargo chef cook
Same cargo chef cook lock divergence as the relay Dockerfile; build without --locked so the lock is refreshed to the chef resolution. Closes #18 (part 12 docker) Signed-off-by: Brian Charbonneau <github@briancharbonneau.com>
1 parent a6c86d6 commit e58fcd8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile.push-gateway

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ RUN apt-get update \
1717
COPY --from=planner /build/recipe.json recipe.json
1818
RUN cargo chef cook --release --recipe-path recipe.json
1919
COPY . .
20-
RUN cargo build --release --locked -p buzz-push-gateway --bin buzz-push-gateway \
20+
# cargo chef cook resolves workspace crates to recipe versions that diverge
21+
# from the committed lock; --locked would then fail. Build without it.
22+
RUN cargo build --release -p buzz-push-gateway --bin buzz-push-gateway \
2123
&& strip target/release/buzz-push-gateway
2224

2325
FROM debian:${DEBIAN_VERSION}-slim AS runtime

0 commit comments

Comments
 (0)