Skip to content

How to install in PHP8 Docker alpine:version image? #177

@jonatansantana

Description

@jonatansantana

I tried to install using pecl, curl, pickle and some other suggested ways I found on the internet, but with no success. Is this extension really available for php8?

This work:

 RUN apk --no-cache add \
  php8 \
  php8-curl 

But...

 RUN apk --no-cache add \
  php8 \
  php8-ds  #or php8-pecl-ds

Not work.

I tried using this another way. No error occurs, I assume I have it installed, but I can't use the extension.
I don't know if I need to do anything else. I would like some help with that.

&& mkdir -p /usr/bin/php/ext/ds && curl -fsSL https://pecl.php.net/get/ds | tar xvz -C "/usr/bin/php/ext/ds" --strip 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions