From 72b350f7b1b220992499046fc2c99989c0acc4b6 Mon Sep 17 00:00:00 2001 From: naskya Date: Sun, 23 Jun 2024 15:06:43 +0900 Subject: [PATCH] container: work around the build issue on linux/arm64 todo: report this issue to napi-rs Co-authored-by: sup39 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index d8d831e95c..2b4de7eb91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,7 @@ RUN cargo fetch --locked --manifest-path Cargo.toml COPY packages/backend-rs packages/backend-rs/ # Compile backend-rs +RUN ln -s $(which gcc) /usr/bin/aarch64-linux-musl-gcc RUN NODE_ENV='production' pnpm run --filter backend-rs build:container # Copy/Overwrite index.js to mitigate the bug in napi-rs codegen