container: make sure to use the correct backend-rs/built/index.js

This commit is contained in:
naskya 2024-04-30 20:50:39 +09:00
parent 1a46d1394c
commit c345d80f4a
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

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