From c5a7ae247ad88e8283982a483d09614e0987efd9 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Fri, 24 Jul 2026 14:10:13 +0700 Subject: [PATCH] fix(infra): copy binaries from builder's filesystem, not cache mount The builder stage uses --mount=type=cache for /app/target, so binaries are in the cache which isn't available to the runtime stage COPY. Fix by copying from /app/gateway and /app/workers which were cp'd to the builder's regular filesystem. Co-Authored-By: Kilo --- infra/docker/tools.Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/docker/tools.Dockerfile b/infra/docker/tools.Dockerfile index abaacec..f7660ab 100644 --- a/infra/docker/tools.Dockerfile +++ b/infra/docker/tools.Dockerfile @@ -50,9 +50,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app -# Copy Rust binaries -COPY --from=builder /app/target/release/tools-gateway /app/gateway -COPY --from=builder /app/target/release/tools-workers /app/workers +# Copy Rust binaries (cp'd from cache mount in builder stage) +COPY --from=builder /app/gateway /app/gateway +COPY --from=builder /app/workers /app/workers # Copy Next.js build COPY --from=frontend-builder /app/.next /app/.next