Docker: Installing libcurl4-openssl-dev equivalent on Alpine
Asked Answered
S

1

6

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.

Stringy answered 17/5, 2022 at 2:57 Comment(0)
S
12

The equivalent package is curl-dev. Run:

apk add curl-dev

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

Stringy answered 17/5, 2022 at 2:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.