From b2e279b3d25cc23dbb96f40c7b83921e45b90788 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Mon, 9 Nov 2026 08:38:21 +0000 Subject: [PATCH] fix(deploy): copy plugins/ into the Rust build stage video.rs include_str!s plugins/video/module.toml, but the web images' Rust stage copied only node/, so every dev2 deploy since b5b959a failed with "couldn't read .../plugins/video/module.toml" and nothing shipped. Co-Authored-By: Claude Opus 5.5 --- .nixpacks/Dockerfile | 3 +++ Dockerfile.web | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.nixpacks/Dockerfile b/.nixpacks/Dockerfile index 261c2ca3..d3bf04ac 100644 --- a/.nixpacks/Dockerfile +++ b/.nixpacks/Dockerfile @@ -20,6 +20,9 @@ FROM rust:1.92-bookworm AS rustbuild WORKDIR /src COPY Cargo.toml Cargo.lock ./ COPY node ./node +# Crates include_str! files from plugins/ (e.g. plugins/video/module.toml), so +# the Rust stage needs them too or the build fails with "couldn't read". +COPY plugins ./plugins RUN cargo build --release --bin c0mpute # ── stage 2: build the Next.js site (Bun) ──────────────────────────────── diff --git a/Dockerfile.web b/Dockerfile.web index bfdf9957..522f2cce 100644 --- a/Dockerfile.web +++ b/Dockerfile.web @@ -15,6 +15,9 @@ FROM rust:1.92-bookworm AS rustbuild WORKDIR /src COPY Cargo.toml Cargo.lock ./ COPY node ./node +# Crates include_str! files from plugins/ (e.g. plugins/video/module.toml), so +# the Rust stage needs them too or the build fails with "couldn't read". +COPY plugins ./plugins RUN cargo build --release --bin c0mpute # ── stage 2: build the Next.js site (Bun) ────────────────────────────────