Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker: Installing libcurl4-openssl-dev equivalent on Alpine

I have a Dockerfile that uses ruby:2.7.1-alpine base image. I have a gem that needs libcurl, which I am having troubles installing on the Alpine image. I saw a solution on a GitHub issue associate with the aforementioned gem. But that solution assumes a Debian-based OS, which mentions installing libcurl4-openssl-dev. What I need is the equivalent of this package on Alpine.

like image 659
Mahmoud Mousa Hamad Avatar asked May 15 '26 07:05

Mahmoud Mousa Hamad


1 Answers

The equivalent package is curl-dev. Run:

apk add curl-dev

Source: See APT <-> APK packages table in this GitHub Issue.

like image 154
Mahmoud Mousa Hamad Avatar answered May 18 '26 05:05

Mahmoud Mousa Hamad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!