I just tried to install curl in an alpine container and it doesn't work:

$ docker exec -it ... sh
/ # apk add curl
/ # curl google.com
Error relocating /usr/bin/curl: curl_global_trace: symbol not found

But it works if I install it in a new container:

$ docker run --rm -it ruby:2.7.7-alpine3.16 sh
/ # apk add curl
/ # curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>