Build in alpine has `linking with `cc` failed` error

I'm creating a dockerfile of alipine rust, and building my project in it. but it return linking with cc failed error, I trying add export RUSTFLAGS='-C target-feature=-crt-static' , Still have a problem, Strangely enough, I had no problem running it locally, but runing it in github action have problem.

Dockerfile

error showing github action page

In alpine, rust can not link ssl library is a duplicate of this, right?

Yes,that is a simple example.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.