Search code examples
dockerphp-5.6debian-jessiebcmath

How to install bcmath on a debian:jessie php5.6?


I am running a linux instance on a docker container. It is a debian:jessie with a php 5.6.

I want to install bcmath module, but I have no success.

Does someone know how o do that?

root@1419c032c35f:/etc/php5/fpm# apt install php5.6-bcmath
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php5.6-bcmath
E: Couldn't find any package by regex 'php5.6-bcmath'

Solution

  • Simply create a Dockerfile that will build from the image you want (the one linked above) and add the line

    RUN docker-php-ext-install bcmath