Search code examples
dockeralpine-linux

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.


Solution

  • The equivalent package is curl-dev. Run:

    apk add curl-dev
    

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