From c345d80f4a394b4d742973c8dc8e47c379f3f611 Mon Sep 17 00:00:00 2001 From: naskya Date: Tue, 30 Apr 2024 20:50:39 +0900 Subject: [PATCH] container: make sure to use the correct backend-rs/built/index.js --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0327411cba..d6b80195bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,9 @@ COPY packages/backend-rs packages/backend-rs/ # Compile backend-rs RUN NODE_ENV='production' pnpm run --filter backend-rs build +# Copy/Overwrite index.js to mitigate the bug in napi-rs codegen +COPY packages/backend-rs/index.js packages/backend-rs/built/index.js + # Copy in the rest of the files to compile COPY . ./ RUN NODE_ENV='production' pnpm run --filter firefish-js build