Mahmoud Mousa Hamad
Mahmoud Mousa Hamad

Reputation: 687

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.

Upvotes: 7

Views: 7057

Answers (1)

Mahmoud Mousa Hamad
Mahmoud Mousa Hamad

Reputation: 687

The equivalent package is curl-dev. Run:

apk add curl-dev

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

Upvotes: 13

Related Questions