After copying the full package source, we need to run pnpm install again
to ensure all dependencies are properly linked and TypeScript can find
all required modules like idna-uts46-hx.
The build script runs TypeScript compilation (tsgo) before lingui:compile,
causing it to fail when looking for @app/locales/*/messages.mjs files.
Running lingui:compile separately before the build fixes this.
The typecheck step was failing due to missing module declarations
and is redundant since CI already runs typecheck on every PR.
Removing this speeds up the Docker build.
Based on https://gist.github.com/PaulMColeman/e7ef82e05035b24300d2ea1954527f10
Changes:
- Add ca-certificates for rustup HTTPS downloads
- Install Rust and WASM toolchain for frontend WebAssembly compilation
- Copy config directory needed for FLUXER_CONFIG env var
- Set FLUXER_CONFIG so rspack can derive API endpoints
- Update ENTRYPOINT to target @fluxer/server package specifically
- Fix .dockerignore to allow build scripts and locale files
These fixes address the most critical build issues documented in the
community guide for self-hosting Fluxer.