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:
parent
0a45a158dd
commit
72b350f7b1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue