Building rust application with PyO3 dependency fails inside docker #4242
-
I have a rust applicatio which uses PyO3 to run python code, I can run and build it on my ubuntu host but I need to be able to build it inside a docker container. Unfortunately that always fails with linker errors. My dockerfile looks like this
I'm using rust 1.78.0 with the pyo3 crate in version 0.21.0 and only the This is the error I'm getting, it happens when compiling my rust application.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Can you try recompiling with |
Beta Was this translation helpful? Give feedback.
I have fixed it by not using the
x86_64-unknown-linux-musl
target but I'm not sure why.I could cleanup the dockerfile a bit too