How to build a Dioxus project with Docker? #5601
Replies: 1 comment
|
The fix is to stop reinstalling the toolchain and recompiling every dependency on each build. Two pieces do most of the work: cargo-chef so the dependency layer only rebuilds when your Dioxus keeps a reference Dockerfile that does exactly this. Easiest to just base yours on it: The shape of it:
The If it's actually failing rather than just slow, drop the error in here. "Kept failing" is usually a missing system lib (openssl/pkg-config) or the wasm target not being installed, both quick fixes. |
Uh oh!
There was an error while loading. Please reload this page.
Recently I tried building a project with Dioxus, but the Docker build kept failing. Is there a way to integrate all the necessary tools for Dioxus building into a single image to avoid downloading tools from scratch every time?
All reactions