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 <kilo@kilo.ai>
This commit is contained in:
@@ -50,9 +50,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy Rust binaries
|
# Copy Rust binaries (cp'd from cache mount in builder stage)
|
||||||
COPY --from=builder /app/target/release/tools-gateway /app/gateway
|
COPY --from=builder /app/gateway /app/gateway
|
||||||
COPY --from=builder /app/target/release/tools-workers /app/workers
|
COPY --from=builder /app/workers /app/workers
|
||||||
|
|
||||||
# Copy Next.js build
|
# Copy Next.js build
|
||||||
COPY --from=frontend-builder /app/.next /app/.next
|
COPY --from=frontend-builder /app/.next /app/.next
|
||||||
|
|||||||
Reference in New Issue
Block a user