container: work around the build issue on linux/arm64

todo: report this issue to napi-rs

Co-authored-by: sup39 <dev@sup39.dev>
This commit is contained in:
naskya 2024-06-23 15:06:43 +09:00
parent 0a45a158dd
commit 72b350f7b1
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -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