Replies: 1 comment
-
I've experienced the same issue. I'm no expert so someone on the core team might correct things I'm about to write. It seems like So, it seems like Dioxus is looking at different locations than where cargo (and presumably chef) are going to put things. This is what I do instead: First, I created a
Then I have my Dockerfile:
After installing the dioxus-cli, it copies the build.rs, Cargo.toml, and Cargo.lock over. It then builds the layer with all the dependencies. Then it copies over everything (the whole app rather than just the dummy For chef to work (beyond using the same directories as This is basically adapted from: https://www.lpalmieri.com/posts/fast-rust-docker-builds/#caching-rust-builds (that's by cargo-chef's author). This uses a very basic Dioxus app (the EDIT: I also did a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I copied the Dockerfile from the docs and it seems that cargo chef is not fully effective. If I don't touch my dependencies and only make a modification in my
main.rs
, thedx bundle
command still seems to compile most (all?) dependencies.Beta Was this translation helpful? Give feedback.
All reactions