Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing php extensions #174

Closed
tcurdt opened this issue Mar 21, 2024 · 1 comment
Closed

installing php extensions #174

tcurdt opened this issue Mar 21, 2024 · 1 comment

Comments

@tcurdt
Copy link

tcurdt commented Mar 21, 2024

I just tried

ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/download/2.2.5/install-php-extensions /usr/local/bin/
RUN install-php-extensions @fix_letsencrypt
RUN install-php-extensions @composer
RUN install-php-extensions pdo_mysql

but it fails

> ERROR [stage-1  3/14] RUN install-php-extensions @fix_letsencrypt                                                                     0.1s
------
 > [stage-1  3/14] RUN install-php-extensions @fix_letsencrypt:
0.092 The script /usr/local/bin/install-php-extensions is meant to be used with official Docker PHP Images - https://hub.docker.com/_/php
------
Dockerfile:15
--------------------
  13 |     # install php extensions
  14 |     ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/download/2.2.5/install-php-extensions /usr/local/bin/
  15 | >>> RUN install-php-extensions @fix_letsencrypt
  16 |     RUN install-php-extensions @composer
  17 |     RUN install-php-extensions pdo_mysql
--------------------
ERROR: failed to solve: process "/bin/sh -c install-php-extensions @fix_letsencrypt" did not complete successfully: exit code: 1

Is there maybe any way to leverage the that installer?

@TrafeX
Copy link
Owner

TrafeX commented Mar 22, 2024

Hi @tcurdt ,

No that's not possible because the PHP extensions are installed als precompiled packages from Alpine Linux.
You should search for the package you need on https://pkgs.alpinelinux.org/packages and install it with apk add --no-cache <package>

@tcurdt tcurdt closed this as completed Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants